Package io.jans.as.server.model.common
Class UnmodifiableAuthorizationGrant
java.lang.Object
io.jans.as.server.model.common.UnmodifiableAuthorizationGrant
- All Implemented Interfaces:
IAuthorizationGrant
Gives ability to use authorization grant in read-only mode.
- Version:
- September 30, 2021
- Author:
- Yuriy Zabrovarnyy, Javier Rojas Blum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkScopesPolicy
(String scope) createAccessToken
(ExecutionContext executionContext) createIdToken
(String nonce, AuthorizationCode authorizationCode, AccessToken accessToken, RefreshToken refreshToken, String state, ExecutionContext executionContext) createLogoutStatusJwt
(ExecutionContext executionContext) createRefreshToken
(ExecutionContext executionContext) createRefreshToken
(ExecutionContext executionContext, int lifetime) getAccessToken
(String tokenCode) io.jans.as.common.model.registration.Client
io.jans.as.model.common.GrantType
getLogoutStatusJwt
(String logoutStatusJwtCode) getNonce()
getRefreshToken
(String refreshTokenCode) getSub()
io.jans.model.token.TokenEntity
io.jans.as.common.model.common.User
getUser()
void
void
save()
Saves changes asynchronouslyvoid
setAccessTokens
(List<AccessToken> accessTokens) void
setAcrValues
(String authMode) void
setAuthorizationCode
(AuthorizationCode authorizationCode) void
setGrantId
(String grantId) void
setIdToken
(IdToken idToken) void
setJwtAuthorizationRequest
(JwtAuthorizationRequest jwtAuthorizationRequest) void
setLogoutStatusJwts
(List<LogoutStatusJwt> tokens) void
setLongLivedAccessToken
(AccessToken longLivedAccessToken) void
void
setRefreshTokens
(List<RefreshToken> refreshTokens) void
setScopes
(Collection<String> scopes) void
setSessionDn
(String sessionDn) void
setTokenEntity
(io.jans.model.token.TokenEntity token) void
setTxTokens
(List<TxToken> txTokens)
-
Field Details
-
NOT_ALLOWED_FOR_UNMODIFIABLE_AUTHORIZATION_GRANT
- See Also:
-
-
Constructor Details
-
UnmodifiableAuthorizationGrant
-
-
Method Details
-
getGrantType
public io.jans.as.model.common.GrantType getGrantType()- Specified by:
getGrantType
in interfaceIAuthorizationGrant
-
getGrantId
- Specified by:
getGrantId
in interfaceIAuthorizationGrant
-
setGrantId
- Specified by:
setGrantId
in interfaceIAuthorizationGrant
-
getAuthorizationCode
- Specified by:
getAuthorizationCode
in interfaceIAuthorizationGrant
-
setAuthorizationCode
- Specified by:
setAuthorizationCode
in interfaceIAuthorizationGrant
-
getNonce
- Specified by:
getNonce
in interfaceIAuthorizationGrant
-
setNonce
- Specified by:
setNonce
in interfaceIAuthorizationGrant
-
getSub
- Specified by:
getSub
in interfaceIAuthorizationGrant
-
createLogoutStatusJwt
- Specified by:
createLogoutStatusJwt
in interfaceIAuthorizationGrant
-
createAccessToken
- Specified by:
createAccessToken
in interfaceIAuthorizationGrant
-
createRefreshToken
- Specified by:
createRefreshToken
in interfaceIAuthorizationGrant
-
createRefreshToken
- Specified by:
createRefreshToken
in interfaceIAuthorizationGrant
-
createIdToken
public IdToken createIdToken(String nonce, AuthorizationCode authorizationCode, AccessToken accessToken, RefreshToken refreshToken, String state, ExecutionContext executionContext) - Specified by:
createIdToken
in interfaceIAuthorizationGrant
-
getRefreshToken
- Specified by:
getRefreshToken
in interfaceIAuthorizationGrant
-
getAccessToken
- Specified by:
getAccessToken
in interfaceIAuthorizationGrant
-
revokeAllTokens
public void revokeAllTokens()- Specified by:
revokeAllTokens
in interfaceIAuthorizationGrant
-
checkExpiredTokens
public void checkExpiredTokens()- Specified by:
checkExpiredTokens
in interfaceIAuthorizationGrant
-
checkScopesPolicy
- Specified by:
checkScopesPolicy
in interfaceIAuthorizationGrant
-
getUser
public io.jans.as.common.model.common.User getUser()- Specified by:
getUser
in interfaceIAuthorizationGrant
-
getUserId
- Specified by:
getUserId
in interfaceIAuthorizationGrant
-
getUserDn
- Specified by:
getUserDn
in interfaceIAuthorizationGrant
-
getAuthorizationGrantType
- Specified by:
getAuthorizationGrantType
in interfaceIAuthorizationGrant
-
getClientId
- Specified by:
getClientId
in interfaceIAuthorizationGrant
-
getClient
public io.jans.as.common.model.registration.Client getClient()- Specified by:
getClient
in interfaceIAuthorizationGrant
-
getClientDn
- Specified by:
getClientDn
in interfaceIAuthorizationGrant
-
getAccessTokens
- Specified by:
getAccessTokens
in interfaceIAuthorizationGrant
-
getScopes
- Specified by:
getScopes
in interfaceIAuthorizationGrant
-
getRefreshTokensCodes
- Specified by:
getRefreshTokensCodes
in interfaceIAuthorizationGrant
-
getLogoutStatusJwtsCodes
- Specified by:
getLogoutStatusJwtsCodes
in interfaceIAuthorizationGrant
-
getAccessTokensCodes
- Specified by:
getAccessTokensCodes
in interfaceIAuthorizationGrant
-
getLogoutStatusJwts
- Specified by:
getLogoutStatusJwts
in interfaceIAuthorizationGrant
-
getRefreshTokens
- Specified by:
getRefreshTokens
in interfaceIAuthorizationGrant
-
setLogoutStatusJwts
- Specified by:
setLogoutStatusJwts
in interfaceIAuthorizationGrant
-
getLogoutStatusJwt
- Specified by:
getLogoutStatusJwt
in interfaceIAuthorizationGrant
-
setRefreshTokens
- Specified by:
setRefreshTokens
in interfaceIAuthorizationGrant
-
getLongLivedAccessToken
- Specified by:
getLongLivedAccessToken
in interfaceIAuthorizationGrant
-
getIdToken
- Specified by:
getIdToken
in interfaceIAuthorizationGrant
-
getJwtAuthorizationRequest
- Specified by:
getJwtAuthorizationRequest
in interfaceIAuthorizationGrant
-
setJwtAuthorizationRequest
- Specified by:
setJwtAuthorizationRequest
in interfaceIAuthorizationGrant
-
getAuthenticationTime
- Specified by:
getAuthenticationTime
in interfaceIAuthorizationGrant
-
getTokenEntity
public io.jans.model.token.TokenEntity getTokenEntity()- Specified by:
getTokenEntity
in interfaceIAuthorizationGrant
-
setTokenEntity
public void setTokenEntity(io.jans.model.token.TokenEntity token) - Specified by:
setTokenEntity
in interfaceIAuthorizationGrant
-
setLongLivedAccessToken
- Specified by:
setLongLivedAccessToken
in interfaceIAuthorizationGrant
-
setIdToken
- Specified by:
setIdToken
in interfaceIAuthorizationGrant
-
setScopes
- Specified by:
setScopes
in interfaceIAuthorizationGrant
-
setAccessTokens
- Specified by:
setAccessTokens
in interfaceIAuthorizationGrant
-
setTxTokens
- Specified by:
setTxTokens
in interfaceIAuthorizationGrant
-
getAcrValues
- Specified by:
getAcrValues
in interfaceIAuthorizationGrant
-
setAcrValues
- Specified by:
setAcrValues
in interfaceIAuthorizationGrant
-
getSessionDn
- Specified by:
getSessionDn
in interfaceIAuthorizationGrant
-
setSessionDn
- Specified by:
setSessionDn
in interfaceIAuthorizationGrant
-
save
public void save()Description copied from interface:IAuthorizationGrant
Saves changes asynchronously- Specified by:
save
in interfaceIAuthorizationGrant
-