Package io.jans.as.server.model.common
Interface IAuthorizationGrant
-
- All Known Implementing Classes:
AbstractAuthorizationGrant
,AuthorizationCodeGrant
,AuthorizationGrant
,CIBAGrant
,ClientCredentialsGrant
,DeviceCodeGrant
,ImplicitGrant
,ResourceOwnerPasswordCredentialsGrant
,SimpleAuthorizationGrant
,UnmodifiableAuthorizationGrant
public interface IAuthorizationGrant
- Version:
- September 30, 2021
- Author:
- Yuriy Zabrovarnyy, Javier Rojas Blum
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
checkExpiredTokens()
java.lang.String
checkScopesPolicy(java.lang.String scope)
AccessToken
createAccessToken(ExecutionContext executionContext)
IdToken
createIdToken(java.lang.String nonce, AuthorizationCode authorizationCode, AccessToken accessToken, RefreshToken refreshToken, java.lang.String state, ExecutionContext executionContext)
RefreshToken
createRefreshToken(ExecutionContext executionContext)
RefreshToken
createRefreshToken(ExecutionContext executionContext, int lifetime)
AbstractToken
getAccessToken(java.lang.String tokenCode)
java.util.List<AccessToken>
getAccessTokens()
java.util.Set<java.lang.String>
getAccessTokensCodes()
java.lang.String
getAcrValues()
java.util.Date
getAuthenticationTime()
AuthorizationCode
getAuthorizationCode()
AuthorizationGrantType
getAuthorizationGrantType()
io.jans.as.common.model.registration.Client
getClient()
java.lang.String
getClientDn()
java.lang.String
getClientId()
java.lang.String
getGrantId()
io.jans.as.model.common.GrantType
getGrantType()
IdToken
getIdToken()
JwtAuthorizationRequest
getJwtAuthorizationRequest()
AccessToken
getLongLivedAccessToken()
java.lang.String
getNonce()
RefreshToken
getRefreshToken(java.lang.String refreshTokenCode)
java.util.List<RefreshToken>
getRefreshTokens()
java.util.Set<java.lang.String>
getRefreshTokensCodes()
java.util.Set<java.lang.String>
getScopes()
java.lang.String
getSessionDn()
java.lang.String
getSub()
TokenEntity
getTokenEntity()
io.jans.as.common.model.common.User
getUser()
java.lang.String
getUserDn()
java.lang.String
getUserId()
void
revokeAllTokens()
void
save()
Saves changes asynchronouslyvoid
setAccessTokens(java.util.List<AccessToken> accessTokens)
void
setAcrValues(java.lang.String authMode)
void
setAuthorizationCode(AuthorizationCode authorizationCode)
void
setGrantId(java.lang.String grantId)
void
setIdToken(IdToken idToken)
void
setJwtAuthorizationRequest(JwtAuthorizationRequest jwtAuthorizationRequest)
void
setLongLivedAccessToken(AccessToken longLivedAccessToken)
void
setNonce(java.lang.String nonce)
void
setRefreshTokens(java.util.List<RefreshToken> refreshTokens)
void
setScopes(java.util.Collection<java.lang.String> scopes)
void
setSessionDn(java.lang.String sessionDn)
void
setTokenEntity(TokenEntity tokenEntity)
-
-
-
Method Detail
-
getGrantType
io.jans.as.model.common.GrantType getGrantType()
-
getGrantId
java.lang.String getGrantId()
-
setGrantId
void setGrantId(java.lang.String grantId)
-
getAuthorizationCode
AuthorizationCode getAuthorizationCode()
-
setAuthorizationCode
void setAuthorizationCode(AuthorizationCode authorizationCode)
-
getNonce
java.lang.String getNonce()
-
setNonce
void setNonce(java.lang.String nonce)
-
getSub
java.lang.String getSub()
-
createAccessToken
AccessToken createAccessToken(ExecutionContext executionContext)
-
createRefreshToken
RefreshToken createRefreshToken(ExecutionContext executionContext)
-
createRefreshToken
RefreshToken createRefreshToken(ExecutionContext executionContext, int lifetime)
-
createIdToken
IdToken createIdToken(java.lang.String nonce, AuthorizationCode authorizationCode, AccessToken accessToken, RefreshToken refreshToken, java.lang.String state, ExecutionContext executionContext)
-
getRefreshToken
RefreshToken getRefreshToken(java.lang.String refreshTokenCode)
-
getAccessToken
AbstractToken getAccessToken(java.lang.String tokenCode)
-
revokeAllTokens
void revokeAllTokens()
-
checkExpiredTokens
void checkExpiredTokens()
-
checkScopesPolicy
java.lang.String checkScopesPolicy(java.lang.String scope)
-
getUser
io.jans.as.common.model.common.User getUser()
-
getUserId
java.lang.String getUserId()
-
getUserDn
java.lang.String getUserDn()
-
getAuthorizationGrantType
AuthorizationGrantType getAuthorizationGrantType()
-
getClientId
java.lang.String getClientId()
-
getClient
io.jans.as.common.model.registration.Client getClient()
-
getClientDn
java.lang.String getClientDn()
-
getAccessTokens
java.util.List<AccessToken> getAccessTokens()
-
getScopes
java.util.Set<java.lang.String> getScopes()
-
getRefreshTokensCodes
java.util.Set<java.lang.String> getRefreshTokensCodes()
-
getAccessTokensCodes
java.util.Set<java.lang.String> getAccessTokensCodes()
-
getRefreshTokens
java.util.List<RefreshToken> getRefreshTokens()
-
setRefreshTokens
void setRefreshTokens(java.util.List<RefreshToken> refreshTokens)
-
getLongLivedAccessToken
AccessToken getLongLivedAccessToken()
-
getIdToken
IdToken getIdToken()
-
getJwtAuthorizationRequest
JwtAuthorizationRequest getJwtAuthorizationRequest()
-
setJwtAuthorizationRequest
void setJwtAuthorizationRequest(JwtAuthorizationRequest jwtAuthorizationRequest)
-
getAuthenticationTime
java.util.Date getAuthenticationTime()
-
getTokenEntity
TokenEntity getTokenEntity()
-
setTokenEntity
void setTokenEntity(TokenEntity tokenEntity)
-
setLongLivedAccessToken
void setLongLivedAccessToken(AccessToken longLivedAccessToken)
-
setIdToken
void setIdToken(IdToken idToken)
-
setScopes
void setScopes(java.util.Collection<java.lang.String> scopes)
-
setAccessTokens
void setAccessTokens(java.util.List<AccessToken> accessTokens)
-
getAcrValues
java.lang.String getAcrValues()
-
setAcrValues
void setAcrValues(java.lang.String authMode)
-
getSessionDn
java.lang.String getSessionDn()
-
setSessionDn
void setSessionDn(java.lang.String sessionDn)
-
save
void save()
Saves changes asynchronously
-
-