Package org.gluu.oxauth.model.common
Class AuthorizationGrantList
- java.lang.Object
-
- org.gluu.oxauth.model.common.AuthorizationGrantList
-
- All Implemented Interfaces:
IAuthorizationGrantList
@Dependent public class AuthorizationGrantList extends java.lang.Object implements IAuthorizationGrantList
Component to hold in memory authorization grant objects.- Version:
- February 25, 2020
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description AuthorizationGrantList()
-
Method Summary
-
-
-
Method Detail
-
removeAuthorizationGrants
public void removeAuthorizationGrants(java.util.List<AuthorizationGrant> authorizationGrants)
- Specified by:
removeAuthorizationGrants
in interfaceIAuthorizationGrantList
-
createAuthorizationGrant
public AuthorizationGrant createAuthorizationGrant(User user, Client client, java.util.Date authenticationTime)
- Specified by:
createAuthorizationGrant
in interfaceIAuthorizationGrantList
-
createAuthorizationCodeGrant
public AuthorizationCodeGrant createAuthorizationCodeGrant(User user, Client client, java.util.Date authenticationTime)
- Specified by:
createAuthorizationCodeGrant
in interfaceIAuthorizationGrantList
-
createImplicitGrant
public ImplicitGrant createImplicitGrant(User user, Client client, java.util.Date authenticationTime)
- Specified by:
createImplicitGrant
in interfaceIAuthorizationGrantList
-
createClientCredentialsGrant
public ClientCredentialsGrant createClientCredentialsGrant(User user, Client client)
- Specified by:
createClientCredentialsGrant
in interfaceIAuthorizationGrantList
-
createResourceOwnerPasswordCredentialsGrant
public ResourceOwnerPasswordCredentialsGrant createResourceOwnerPasswordCredentialsGrant(User user, Client client)
- Specified by:
createResourceOwnerPasswordCredentialsGrant
in interfaceIAuthorizationGrantList
-
createCIBAGrant
public CIBAGrant createCIBAGrant(CibaRequestCacheControl request)
- Specified by:
createCIBAGrant
in interfaceIAuthorizationGrantList
-
getCIBAGrant
public CIBAGrant getCIBAGrant(java.lang.String authReqId)
- Specified by:
getCIBAGrant
in interfaceIAuthorizationGrantList
-
createDeviceGrant
public DeviceCodeGrant createDeviceGrant(DeviceAuthorizationCacheControl data, User user)
- Specified by:
createDeviceGrant
in interfaceIAuthorizationGrantList
-
getDeviceCodeGrant
public DeviceCodeGrant getDeviceCodeGrant(java.lang.String deviceCode)
- Specified by:
getDeviceCodeGrant
in interfaceIAuthorizationGrantList
-
getAuthorizationCodeGrant
public AuthorizationCodeGrant getAuthorizationCodeGrant(java.lang.String authorizationCode)
- Specified by:
getAuthorizationCodeGrant
in interfaceIAuthorizationGrantList
-
getAuthorizationGrantByRefreshToken
public AuthorizationGrant getAuthorizationGrantByRefreshToken(java.lang.String clientId, java.lang.String refreshTokenCode)
- Specified by:
getAuthorizationGrantByRefreshToken
in interfaceIAuthorizationGrantList
-
assertTokenType
public AuthorizationGrant assertTokenType(TokenLdap tokenLdap, TokenType tokenType, java.lang.String clientId)
-
getAuthorizationGrant
public java.util.List<AuthorizationGrant> getAuthorizationGrant(java.lang.String clientId)
- Specified by:
getAuthorizationGrant
in interfaceIAuthorizationGrantList
-
getAuthorizationGrantByAccessToken
public AuthorizationGrant getAuthorizationGrantByAccessToken(java.lang.String accessToken)
- Specified by:
getAuthorizationGrantByAccessToken
in interfaceIAuthorizationGrantList
-
getAuthorizationGrantByAccessToken
public AuthorizationGrant getAuthorizationGrantByAccessToken(java.lang.String accessToken, boolean onlyFromCache)
-
getAuthorizationGrantByIdToken
public AuthorizationGrant getAuthorizationGrantByIdToken(java.lang.String idToken)
- Specified by:
getAuthorizationGrantByIdToken
in interfaceIAuthorizationGrantList
-
asGrant
public AuthorizationGrant asGrant(TokenLdap tokenLdap)
-
-