Package org.openiam.esb.am.service
Interface OAuthService
-
- All Known Implementing Classes:
OAuthServiceImpl
public interface OAuthServiceCreated by alexander on 24.04.15.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<OAuthToken>findBeans(OAuthSearchBean searchBean, int from, int size)Find OAuth tokens.OAuthTokenEntitygetOAuthTokenByRefreshToken(String refreshToken)OAuthTokenEntitygetOAuthTokenByToken(String accessToken)voidrevokeIdTokens(List<String> idTokens)Revoke ID tokens.voidrevokeTokens(List<String> tokens)Revoke token.OAuthTokenEntitysaveOAuthToken(OAuthTokenEntity oAuthTokenEntity)
-
-
-
Method Detail
-
findBeans
List<OAuthToken> findBeans(OAuthSearchBean searchBean, int from, int size)
Find OAuth tokens.- Parameters:
searchBean-from-size-- Returns:
- OAuth tokens
-
getOAuthTokenByToken
OAuthTokenEntity getOAuthTokenByToken(String accessToken)
-
getOAuthTokenByRefreshToken
OAuthTokenEntity getOAuthTokenByRefreshToken(String refreshToken)
-
saveOAuthToken
OAuthTokenEntity saveOAuthToken(OAuthTokenEntity oAuthTokenEntity)
-
revokeTokens
void revokeTokens(List<String> tokens) throws BasicDataServiceException
Revoke token.- Parameters:
tokens- if null throwsBasicDataServiceExceptionwithResponseCode.INVALID_TOKEN- Throws:
BasicDataServiceException
-
revokeIdTokens
void revokeIdTokens(List<String> idTokens) throws BasicDataServiceException
Revoke ID tokens.- Parameters:
idTokens- List of ID tokens to be revoked. If null, throwsBasicDataServiceException- Throws:
BasicDataServiceException- If an error occurs while revoking tokens.
-
-