Package org.openiam.esb.am.service
Interface OAuthService
-
- All Known Implementing Classes:
OAuthServiceImpl
public interface OAuthService
Created 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.OAuthTokenEntity
getOAuthTokenByRefreshToken(String refreshToken)
OAuthTokenEntity
getOAuthTokenByToken(String accessToken)
void
revokeIdTokens(List<String> idTokens)
Revoke ID tokens.void
revokeTokens(List<String> tokens)
Revoke token.OAuthTokenEntity
saveOAuthToken(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 throwsBasicDataServiceException
withResponseCode
.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.
-
-