Package io.jans.as.server.model.common
Class UnmodifiableAuthorizationGrant
- java.lang.Object
 - 
- io.jans.as.server.model.common.UnmodifiableAuthorizationGrant
 
 
- 
- All Implemented Interfaces:
 IAuthorizationGrant
public class UnmodifiableAuthorizationGrant extends Object implements IAuthorizationGrant
Gives ability to use authorization grant in read-only mode.- Version:
 - September 30, 2021
 - Author:
 - Yuriy Zabrovarnyy, Javier Rojas Blum
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringNOT_ALLOWED_FOR_UNMODIFIABLE_AUTHORIZATION_GRANT 
- 
Constructor Summary
Constructors Constructor Description UnmodifiableAuthorizationGrant(IAuthorizationGrant grant) 
- 
Method Summary
 
 - 
 
- 
- 
Field Detail
- 
NOT_ALLOWED_FOR_UNMODIFIABLE_AUTHORIZATION_GRANT
public static final String NOT_ALLOWED_FOR_UNMODIFIABLE_AUTHORIZATION_GRANT
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
UnmodifiableAuthorizationGrant
public UnmodifiableAuthorizationGrant(IAuthorizationGrant grant)
 
 - 
 
- 
Method Detail
- 
getGrantType
public io.jans.as.model.common.GrantType getGrantType()
- Specified by:
 getGrantTypein interfaceIAuthorizationGrant
 
- 
getGrantId
public String getGrantId()
- Specified by:
 getGrantIdin interfaceIAuthorizationGrant
 
- 
setGrantId
public void setGrantId(String grantId)
- Specified by:
 setGrantIdin interfaceIAuthorizationGrant
 
- 
getAuthorizationCode
public AuthorizationCode getAuthorizationCode()
- Specified by:
 getAuthorizationCodein interfaceIAuthorizationGrant
 
- 
setAuthorizationCode
public void setAuthorizationCode(AuthorizationCode authorizationCode)
- Specified by:
 setAuthorizationCodein interfaceIAuthorizationGrant
 
- 
getNonce
public String getNonce()
- Specified by:
 getNoncein interfaceIAuthorizationGrant
 
- 
setNonce
public void setNonce(String nonce)
- Specified by:
 setNoncein interfaceIAuthorizationGrant
 
- 
getSub
public String getSub()
- Specified by:
 getSubin interfaceIAuthorizationGrant
 
- 
createAccessToken
public AccessToken createAccessToken(ExecutionContext executionContext)
- Specified by:
 createAccessTokenin interfaceIAuthorizationGrant
 
- 
createRefreshToken
public RefreshToken createRefreshToken(ExecutionContext executionContext)
- Specified by:
 createRefreshTokenin interfaceIAuthorizationGrant
 
- 
createRefreshToken
public RefreshToken createRefreshToken(ExecutionContext executionContext, int lifetime)
- Specified by:
 createRefreshTokenin interfaceIAuthorizationGrant
 
- 
createIdToken
public IdToken createIdToken(String nonce, AuthorizationCode authorizationCode, AccessToken accessToken, RefreshToken refreshToken, String state, ExecutionContext executionContext)
- Specified by:
 createIdTokenin interfaceIAuthorizationGrant
 
- 
getRefreshToken
public RefreshToken getRefreshToken(String refreshTokenCode)
- Specified by:
 getRefreshTokenin interfaceIAuthorizationGrant
 
- 
getAccessToken
public AbstractToken getAccessToken(String tokenCode)
- Specified by:
 getAccessTokenin interfaceIAuthorizationGrant
 
- 
revokeAllTokens
public void revokeAllTokens()
- Specified by:
 revokeAllTokensin interfaceIAuthorizationGrant
 
- 
checkExpiredTokens
public void checkExpiredTokens()
- Specified by:
 checkExpiredTokensin interfaceIAuthorizationGrant
 
- 
checkScopesPolicy
public String checkScopesPolicy(String scope)
- Specified by:
 checkScopesPolicyin interfaceIAuthorizationGrant
 
- 
getUser
public io.jans.as.common.model.common.User getUser()
- Specified by:
 getUserin interfaceIAuthorizationGrant
 
- 
getUserId
public String getUserId()
- Specified by:
 getUserIdin interfaceIAuthorizationGrant
 
- 
getUserDn
public String getUserDn()
- Specified by:
 getUserDnin interfaceIAuthorizationGrant
 
- 
getAuthorizationGrantType
public AuthorizationGrantType getAuthorizationGrantType()
- Specified by:
 getAuthorizationGrantTypein interfaceIAuthorizationGrant
 
- 
getClientId
public String getClientId()
- Specified by:
 getClientIdin interfaceIAuthorizationGrant
 
- 
getClient
public io.jans.as.common.model.registration.Client getClient()
- Specified by:
 getClientin interfaceIAuthorizationGrant
 
- 
getClientDn
public String getClientDn()
- Specified by:
 getClientDnin interfaceIAuthorizationGrant
 
- 
getAccessTokens
public List<AccessToken> getAccessTokens()
- Specified by:
 getAccessTokensin interfaceIAuthorizationGrant
 
- 
getScopes
public Set<String> getScopes()
- Specified by:
 getScopesin interfaceIAuthorizationGrant
 
- 
getRefreshTokensCodes
public Set<String> getRefreshTokensCodes()
- Specified by:
 getRefreshTokensCodesin interfaceIAuthorizationGrant
 
- 
getAccessTokensCodes
public Set<String> getAccessTokensCodes()
- Specified by:
 getAccessTokensCodesin interfaceIAuthorizationGrant
 
- 
getRefreshTokens
public List<RefreshToken> getRefreshTokens()
- Specified by:
 getRefreshTokensin interfaceIAuthorizationGrant
 
- 
setRefreshTokens
public void setRefreshTokens(List<RefreshToken> refreshTokens)
- Specified by:
 setRefreshTokensin interfaceIAuthorizationGrant
 
- 
getLongLivedAccessToken
public AccessToken getLongLivedAccessToken()
- Specified by:
 getLongLivedAccessTokenin interfaceIAuthorizationGrant
 
- 
getIdToken
public IdToken getIdToken()
- Specified by:
 getIdTokenin interfaceIAuthorizationGrant
 
- 
getJwtAuthorizationRequest
public JwtAuthorizationRequest getJwtAuthorizationRequest()
- Specified by:
 getJwtAuthorizationRequestin interfaceIAuthorizationGrant
 
- 
setJwtAuthorizationRequest
public void setJwtAuthorizationRequest(JwtAuthorizationRequest jwtAuthorizationRequest)
- Specified by:
 setJwtAuthorizationRequestin interfaceIAuthorizationGrant
 
- 
getAuthenticationTime
public Date getAuthenticationTime()
- Specified by:
 getAuthenticationTimein interfaceIAuthorizationGrant
 
- 
getTokenEntity
public io.jans.model.token.TokenEntity getTokenEntity()
- Specified by:
 getTokenEntityin interfaceIAuthorizationGrant
 
- 
setTokenEntity
public void setTokenEntity(io.jans.model.token.TokenEntity token)
- Specified by:
 setTokenEntityin interfaceIAuthorizationGrant
 
- 
setLongLivedAccessToken
public void setLongLivedAccessToken(AccessToken longLivedAccessToken)
- Specified by:
 setLongLivedAccessTokenin interfaceIAuthorizationGrant
 
- 
setIdToken
public void setIdToken(IdToken idToken)
- Specified by:
 setIdTokenin interfaceIAuthorizationGrant
 
- 
setScopes
public void setScopes(Collection<String> scopes)
- Specified by:
 setScopesin interfaceIAuthorizationGrant
 
- 
setAccessTokens
public void setAccessTokens(List<AccessToken> accessTokens)
- Specified by:
 setAccessTokensin interfaceIAuthorizationGrant
 
- 
setTxTokens
public void setTxTokens(List<TxToken> txTokens)
- Specified by:
 setTxTokensin interfaceIAuthorizationGrant
 
- 
getAcrValues
public String getAcrValues()
- Specified by:
 getAcrValuesin interfaceIAuthorizationGrant
 
- 
setAcrValues
public void setAcrValues(String authMode)
- Specified by:
 setAcrValuesin interfaceIAuthorizationGrant
 
- 
getSessionDn
public String getSessionDn()
- Specified by:
 getSessionDnin interfaceIAuthorizationGrant
 
- 
setSessionDn
public void setSessionDn(String sessionDn)
- Specified by:
 setSessionDnin interfaceIAuthorizationGrant
 
- 
save
public void save()
Description copied from interface:IAuthorizationGrantSaves changes asynchronously- Specified by:
 savein interfaceIAuthorizationGrant
 
 - 
 
 -