Package io.jans.as.server.model.common
Class AuthorizationGrantList
- java.lang.Object
-
- io.jans.as.server.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:
- October 12, 2021
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description AuthorizationGrantList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationGrant
asGrant(TokenEntity tokenEntity)
AuthorizationGrant
assertTokenType(TokenEntity tokenEntity, TokenType tokenType, java.lang.String clientId)
AuthorizationCodeGrant
createAuthorizationCodeGrant(io.jans.as.common.model.common.User user, io.jans.as.common.model.registration.Client client, java.util.Date authenticationTime)
AuthorizationGrant
createAuthorizationGrant(io.jans.as.common.model.common.User user, io.jans.as.common.model.registration.Client client, java.util.Date authenticationTime)
CIBAGrant
createCIBAGrant(CibaRequestCacheControl request)
ClientCredentialsGrant
createClientCredentialsGrant(io.jans.as.common.model.common.User user, io.jans.as.common.model.registration.Client client)
DeviceCodeGrant
createDeviceGrant(DeviceAuthorizationCacheControl data, io.jans.as.common.model.common.User user)
ImplicitGrant
createImplicitGrant(io.jans.as.common.model.common.User user, io.jans.as.common.model.registration.Client client, java.util.Date authenticationTime)
ResourceOwnerPasswordCredentialsGrant
createResourceOwnerPasswordCredentialsGrant(io.jans.as.common.model.common.User user, io.jans.as.common.model.registration.Client client)
AuthorizationCodeGrant
getAuthorizationCodeGrant(java.lang.String authorizationCode)
java.util.List<AuthorizationGrant>
getAuthorizationGrant(java.lang.String clientId)
AuthorizationGrant
getAuthorizationGrantByAccessToken(java.lang.String accessToken)
AuthorizationGrant
getAuthorizationGrantByIdToken(java.lang.String idToken)
AuthorizationGrant
getAuthorizationGrantByRefreshToken(java.lang.String clientId, java.lang.String refreshTokenCode)
CIBAGrant
getCIBAGrant(java.lang.String authReqId)
DeviceCodeGrant
getDeviceCodeGrant(java.lang.String deviceCode)
void
removeAuthorizationGrants(java.util.List<AuthorizationGrant> authorizationGrants)
-
-
-
Method Detail
-
removeAuthorizationGrants
public void removeAuthorizationGrants(java.util.List<AuthorizationGrant> authorizationGrants)
- Specified by:
removeAuthorizationGrants
in interfaceIAuthorizationGrantList
-
createAuthorizationGrant
public AuthorizationGrant createAuthorizationGrant(io.jans.as.common.model.common.User user, io.jans.as.common.model.registration.Client client, java.util.Date authenticationTime)
- Specified by:
createAuthorizationGrant
in interfaceIAuthorizationGrantList
-
createAuthorizationCodeGrant
public AuthorizationCodeGrant createAuthorizationCodeGrant(io.jans.as.common.model.common.User user, io.jans.as.common.model.registration.Client client, java.util.Date authenticationTime)
- Specified by:
createAuthorizationCodeGrant
in interfaceIAuthorizationGrantList
-
createImplicitGrant
public ImplicitGrant createImplicitGrant(io.jans.as.common.model.common.User user, io.jans.as.common.model.registration.Client client, java.util.Date authenticationTime)
- Specified by:
createImplicitGrant
in interfaceIAuthorizationGrantList
-
createClientCredentialsGrant
public ClientCredentialsGrant createClientCredentialsGrant(io.jans.as.common.model.common.User user, io.jans.as.common.model.registration.Client client)
- Specified by:
createClientCredentialsGrant
in interfaceIAuthorizationGrantList
-
createResourceOwnerPasswordCredentialsGrant
public ResourceOwnerPasswordCredentialsGrant createResourceOwnerPasswordCredentialsGrant(io.jans.as.common.model.common.User user, io.jans.as.common.model.registration.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, io.jans.as.common.model.common.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(TokenEntity tokenEntity, 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
-
getAuthorizationGrantByIdToken
public AuthorizationGrant getAuthorizationGrantByIdToken(java.lang.String idToken)
- Specified by:
getAuthorizationGrantByIdToken
in interfaceIAuthorizationGrantList
-
asGrant
public AuthorizationGrant asGrant(TokenEntity tokenEntity)
-
-