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