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 4, 2019
- 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(java.lang.String certAsPem, ExecutionContext executionContext)
IdToken
createIdToken(java.lang.String nonce, AuthorizationCode authorizationCode, AccessToken accessToken, RefreshToken refreshToken, java.lang.String state, AuthorizationGrant authorizationGrant, boolean includeIdTokenClaims, java.util.function.Function<io.jans.as.model.token.JsonWebResponse,java.lang.Void> preProcessing, java.util.function.Function<io.jans.as.model.token.JsonWebResponse,java.lang.Void> postProcessing)
RefreshToken
createRefreshToken()
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()
TokenLdap
getTokenLdap()
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 p_grantId)
void
setIdToken(IdToken idToken)
void
setJwtAuthorizationRequest(JwtAuthorizationRequest p_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
setTokenLdap(TokenLdap p_tokenLdap)
-
-
-
Method Detail
-
getGrantType
io.jans.as.model.common.GrantType getGrantType()
-
getGrantId
java.lang.String getGrantId()
-
setGrantId
void setGrantId(java.lang.String p_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(java.lang.String certAsPem, ExecutionContext executionContext)
-
createRefreshToken
RefreshToken createRefreshToken()
-
createIdToken
IdToken createIdToken(java.lang.String nonce, AuthorizationCode authorizationCode, AccessToken accessToken, RefreshToken refreshToken, java.lang.String state, AuthorizationGrant authorizationGrant, boolean includeIdTokenClaims, java.util.function.Function<io.jans.as.model.token.JsonWebResponse,java.lang.Void> preProcessing, java.util.function.Function<io.jans.as.model.token.JsonWebResponse,java.lang.Void> postProcessing)
-
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 p_jwtAuthorizationRequest)
-
getAuthenticationTime
java.util.Date getAuthenticationTime()
-
getTokenLdap
TokenLdap getTokenLdap()
-
setTokenLdap
void setTokenLdap(TokenLdap p_tokenLdap)
-
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
-
-