Package org.openiam.srvc.am
Class OAuthWebServiceImpl
- java.lang.Object
-
- org.openiam.srvc.AbstractApiService
-
- org.openiam.srvc.am.OAuthWebServiceImpl
-
- All Implemented Interfaces:
OAuthWebService
@Service("OAuthWS") @DependsOn("springContextProvider") public class OAuthWebServiceImpl extends AbstractApiService implements OAuthWebServiceCreated by alexander on 06/07/15.
-
-
Field Summary
-
Fields inherited from class org.openiam.srvc.AbstractApiService
applicationContext, log, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description OAuthWebServiceImpl(OAuthQueue queue)
-
Method Summary
-
Methods inherited from class org.openiam.srvc.AbstractApiService
broadcast, crudRequest, getBooleanValue, getIntValue, getIntValue, getRabbitMqQueue, getResponse, getResponse, getValue, getValue, getValueList, getValueList, idRequest, manageApiRequest, manageApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, membershipRequestProcessing, membershipRequestProcessing, publish, publish, sendAsync, sendAsync
-
-
-
-
Constructor Detail
-
OAuthWebServiceImpl
@Autowired public OAuthWebServiceImpl(OAuthQueue queue)
-
-
Method Detail
-
getOAuthTokens
public List<OAuthToken> getOAuthTokens(String userId)
Description copied from interface:OAuthWebServiceGet oauth tokens related to user with given user id- Specified by:
getOAuthTokensin interfaceOAuthWebService- Returns:
- List <
OAuthToken> - See Also:
OAuthToken
-
getClient
public AuthProvider getClient(String clientId)
- Specified by:
getClientin interfaceOAuthWebService
-
getAuthorizedScopes
public List<Resource> getAuthorizedScopes(String clientId, OAuthToken oAuthToken)
- Specified by:
getAuthorizedScopesin interfaceOAuthWebService
-
saveClientScopeAuthorization
public Response saveClientScopeAuthorization(String providerId, String userId, List<OAuthUserClientXref> oauthUserClientXrefList)
- Specified by:
saveClientScopeAuthorizationin interfaceOAuthWebService
-
saveOAuthCode
public Response saveOAuthCode(OAuthCode oAuthCode)
- Specified by:
saveOAuthCodein interfaceOAuthWebService
-
getOAuthCode
public OAuthCode getOAuthCode(String code)
- Specified by:
getOAuthCodein interfaceOAuthWebService
-
getOAuthToken
public OAuthToken getOAuthToken(String token)
- Specified by:
getOAuthTokenin interfaceOAuthWebService
-
getOAuthTokenByRefreshToken
public OAuthToken getOAuthTokenByRefreshToken(String refreshToken)
- Specified by:
getOAuthTokenByRefreshTokenin interfaceOAuthWebService
-
saveOAuthToken
public Response saveOAuthToken(OAuthToken oAuthToken)
- Specified by:
saveOAuthTokenin interfaceOAuthWebService
-
deAuthorizeClient
public Response deAuthorizeClient(String clientId, String userId)
- Specified by:
deAuthorizeClientin interfaceOAuthWebService
-
revokeTokens
public Response revokeTokens(List<String> tokens) throws BasicDataServiceException
Description copied from interface:OAuthWebServiceRevoke token.- Specified by:
revokeTokensin interfaceOAuthWebService- Parameters:
tokens- if null throwsBasicDataServiceExceptionwithResponseCode.INVALID_TOKEN- Throws:
BasicDataServiceException
-
getAuthorizedScopesForRequest
public OAuthScopesResponse getAuthorizedScopesForRequest(String clientId, String userId, boolean countNumAuthorizedScopes, boolean internationalizeScopes)
- Specified by:
getAuthorizedScopesForRequestin interfaceOAuthWebService
-
getAuthorizedScopesRFC6749
public OAuthScopesResponse getAuthorizedScopesRFC6749(String clientId, String userId, String userRequestedScopes, boolean countNumAuthorizedScopes, boolean internationalizeScopes)
- Specified by:
getAuthorizedScopesRFC6749in interfaceOAuthWebService
-
revokeIdTokens
public Response revokeIdTokens(List<String> idTokens) throws BasicDataServiceException
Revoke ID tokens.- Specified by:
revokeIdTokensin interfaceOAuthWebService- Parameters:
idTokens- List of ID tokens to be revoked. If null, throwsBasicDataServiceException- Returns:
- Response indicating the result of the revocation process.
- Throws:
BasicDataServiceException- If an error occurs while revoking tokens.
-
-