Package org.openiam.esb.am.service.impl
Class OAuthServiceImpl
- java.lang.Object
-
- org.openiam.esb.am.service.impl.OAuthServiceImpl
-
- All Implemented Interfaces:
OAuthService
@Service("oAuthService") public class OAuthServiceImpl extends Object implements OAuthServiceCreated by alexander on 24.04.15.
-
-
Constructor Summary
Constructors Constructor Description OAuthServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
@Transactional(readOnly=true) public List<OAuthToken> findBeans(OAuthSearchBean searchBean, int from, int size)
Description copied from interface:OAuthServiceFind OAuth tokens.- Specified by:
findBeansin interfaceOAuthService- Returns:
- OAuth tokens
-
getOAuthTokenByToken
@Transactional(readOnly=true) public OAuthTokenEntity getOAuthTokenByToken(String accessToken)
- Specified by:
getOAuthTokenByTokenin interfaceOAuthService
-
getOAuthTokenByRefreshToken
@Transactional(readOnly=true) public OAuthTokenEntity getOAuthTokenByRefreshToken(String refreshToken)
- Specified by:
getOAuthTokenByRefreshTokenin interfaceOAuthService
-
saveOAuthToken
@Transactional public OAuthTokenEntity saveOAuthToken(OAuthTokenEntity oAuthTokenEntity)
- Specified by:
saveOAuthTokenin interfaceOAuthService
-
revokeTokens
@Transactional public void revokeTokens(List<String> tokens) throws BasicDataServiceException
Description copied from interface:OAuthServiceRevoke token.- Specified by:
revokeTokensin interfaceOAuthService- Parameters:
tokens- if null throwsBasicDataServiceExceptionwithResponseCode.INVALID_TOKEN- Throws:
BasicDataServiceException
-
revokeIdTokens
@Transactional public void revokeIdTokens(List<String> idTokens) throws BasicDataServiceException
Revoke ID tokens.- Specified by:
revokeIdTokensin interfaceOAuthService- Parameters:
idTokens- List of ID tokens to be revoked. If null, throwsBasicDataServiceException- Throws:
BasicDataServiceException- If an error occurs while revoking tokens.
-
-