Package org.gluu.oxauth.model.common
Class UnmodifiableAuthorizationGrant
java.lang.Object
org.gluu.oxauth.model.common.UnmodifiableAuthorizationGrant
- All Implemented Interfaces:
IAuthorizationGrant
Gives ability to use authorization grant in read-only mode.
- Version:
- September 4, 2019
- Author:
- Yuriy Zabrovarnyy, Javier Rojas Blum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckScopesPolicy(String scope) createAccessToken(String certAsPem, ExecutionContext executionContext) createIdToken(String nonce, AuthorizationCode authorizationCode, AccessToken accessToken, RefreshToken refreshToken, String state, AuthorizationGrant authorizationGrant, boolean includeIdTokenClaims, com.google.common.base.Function<JsonWebResponse, Void> preProcessing, com.google.common.base.Function<JsonWebResponse, Void> postProcessing, ExecutionContext executionContext) createRefreshToken(ExecutionContext executionContext) getAccessToken(String tokenCode) getNonce()getRefreshToken(String refreshTokenCode) getSub()getUser()voidvoidsave()Saves changes asynchronouslyvoidsetAccessTokens(List<AccessToken> accessTokens) voidsetAcrValues(String authMode) voidsetAuthorizationCode(AuthorizationCode authorizationCode) voidsetGrantId(String p_grantId) voidsetIdToken(IdToken idToken) voidsetJwtAuthorizationRequest(JwtAuthorizationRequest p_jwtAuthorizationRequest) voidsetLongLivedAccessToken(AccessToken longLivedAccessToken) voidvoidsetRefreshTokens(List<RefreshToken> refreshTokens) voidsetScopes(Collection<String> scopes) voidsetSessionDn(String sessionDn) voidsetTokenLdap(TokenLdap p_tokenLdap)
-
Constructor Details
-
UnmodifiableAuthorizationGrant
-
-
Method Details
-
getGrantType
- Specified by:
getGrantTypein interfaceIAuthorizationGrant
-
getGrantId
- Specified by:
getGrantIdin interfaceIAuthorizationGrant
-
setGrantId
- Specified by:
setGrantIdin interfaceIAuthorizationGrant
-
getAuthorizationCode
- Specified by:
getAuthorizationCodein interfaceIAuthorizationGrant
-
setAuthorizationCode
- Specified by:
setAuthorizationCodein interfaceIAuthorizationGrant
-
getNonce
- Specified by:
getNoncein interfaceIAuthorizationGrant
-
setNonce
- Specified by:
setNoncein interfaceIAuthorizationGrant
-
getSub
- Specified by:
getSubin interfaceIAuthorizationGrant
-
createAccessToken
- Specified by:
createAccessTokenin interfaceIAuthorizationGrant
-
createRefreshToken
- Specified by:
createRefreshTokenin interfaceIAuthorizationGrant
-
createIdToken
public IdToken createIdToken(String nonce, AuthorizationCode authorizationCode, AccessToken accessToken, RefreshToken refreshToken, String state, AuthorizationGrant authorizationGrant, boolean includeIdTokenClaims, com.google.common.base.Function<JsonWebResponse, Void> preProcessing, com.google.common.base.Function<JsonWebResponse, Void> postProcessing, ExecutionContext executionContext) - Specified by:
createIdTokenin interfaceIAuthorizationGrant
-
getRefreshToken
- Specified by:
getRefreshTokenin interfaceIAuthorizationGrant
-
getAccessToken
- Specified by:
getAccessTokenin interfaceIAuthorizationGrant
-
revokeAllTokens
public void revokeAllTokens()- Specified by:
revokeAllTokensin interfaceIAuthorizationGrant
-
checkExpiredTokens
public void checkExpiredTokens()- Specified by:
checkExpiredTokensin interfaceIAuthorizationGrant
-
checkScopesPolicy
- Specified by:
checkScopesPolicyin interfaceIAuthorizationGrant
-
getUser
- Specified by:
getUserin interfaceIAuthorizationGrant
-
getUserId
- Specified by:
getUserIdin interfaceIAuthorizationGrant
-
getUserDn
- Specified by:
getUserDnin interfaceIAuthorizationGrant
-
getAuthorizationGrantType
- Specified by:
getAuthorizationGrantTypein interfaceIAuthorizationGrant
-
getClientId
- Specified by:
getClientIdin interfaceIAuthorizationGrant
-
getClient
- Specified by:
getClientin interfaceIAuthorizationGrant
-
getClientDn
- Specified by:
getClientDnin interfaceIAuthorizationGrant
-
getAccessTokens
- Specified by:
getAccessTokensin interfaceIAuthorizationGrant
-
getScopes
- Specified by:
getScopesin interfaceIAuthorizationGrant
-
getRefreshTokensCodes
- Specified by:
getRefreshTokensCodesin interfaceIAuthorizationGrant
-
getAccessTokensCodes
- Specified by:
getAccessTokensCodesin interfaceIAuthorizationGrant
-
getRefreshTokens
- Specified by:
getRefreshTokensin interfaceIAuthorizationGrant
-
setRefreshTokens
- Specified by:
setRefreshTokensin interfaceIAuthorizationGrant
-
getLongLivedAccessToken
- Specified by:
getLongLivedAccessTokenin interfaceIAuthorizationGrant
-
getIdToken
- Specified by:
getIdTokenin interfaceIAuthorizationGrant
-
getJwtAuthorizationRequest
- Specified by:
getJwtAuthorizationRequestin interfaceIAuthorizationGrant
-
setJwtAuthorizationRequest
- Specified by:
setJwtAuthorizationRequestin interfaceIAuthorizationGrant
-
getAuthenticationTime
- Specified by:
getAuthenticationTimein interfaceIAuthorizationGrant
-
getTokenLdap
- Specified by:
getTokenLdapin interfaceIAuthorizationGrant
-
setTokenLdap
- Specified by:
setTokenLdapin interfaceIAuthorizationGrant
-
setLongLivedAccessToken
- Specified by:
setLongLivedAccessTokenin interfaceIAuthorizationGrant
-
setIdToken
- Specified by:
setIdTokenin interfaceIAuthorizationGrant
-
setScopes
- Specified by:
setScopesin interfaceIAuthorizationGrant
-
setAccessTokens
- Specified by:
setAccessTokensin interfaceIAuthorizationGrant
-
getAcrValues
- Specified by:
getAcrValuesin interfaceIAuthorizationGrant
-
setAcrValues
- Specified by:
setAcrValuesin interfaceIAuthorizationGrant
-
getSessionDn
- Specified by:
getSessionDnin interfaceIAuthorizationGrant
-
setSessionDn
- Specified by:
setSessionDnin interfaceIAuthorizationGrant
-
save
public void save()Description copied from interface:IAuthorizationGrantSaves changes asynchronously- Specified by:
savein interfaceIAuthorizationGrant
-