Class ServerAuthorizationCodeGrant
java.lang.Object
org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeGrant
org.apache.cxf.rs.security.oauth2.grants.code.ServerAuthorizationCodeGrant
- All Implemented Interfaces:
Serializable,AccessTokenGrant
The Authorization Code Grant representation visible to the server
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServerAuthorizationCodeGrant(Client client, long lifetime) ServerAuthorizationCodeGrant(Client client, String code, long expiresIn, long issuedAt) -
Method Summary
Modifier and TypeMethodDescriptionGets the scopes explicitly approved by the end userReturns the reference toClientlongReturns the number of seconds this grant can be valid after it was issuedlongReturns the time (in seconds) this grant was issued atgetNonce()Gets the user subject representing the end userbooleanvoidsetApprovedScopes(List<String> scopes) Sets the scopes explicitly approved by the end user.voidsetAudience(String audience) voidvoidsetClientCodeChallenge(String clientCodeChallenge) voidsetClientCodeChallengeMethod(String clientCodeChallengeMethod) voidsetExpiresIn(long expiresIn) voidsetExtraProperties(Map<String, String> extraProperties) voidsetIssuedAt(long issuedAt) voidvoidsetPreauthorizedTokenAvailable(boolean preauthorizedTokenAvailable) voidsetRequestedScopes(List<String> requestedScopes) voidsetResponseType(String responseType) voidsetSubject(UserSubject subject) Sets the user subject representing the end userMethods inherited from class org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeGrant
getCode, getCodeVerifier, getRedirectUri, getType, setCode, setCodeVerifier, setRedirectUri, toMap
-
Constructor Details
-
ServerAuthorizationCodeGrant
public ServerAuthorizationCodeGrant() -
ServerAuthorizationCodeGrant
-
ServerAuthorizationCodeGrant
-
-
Method Details
-
getIssuedAt
public long getIssuedAt()Returns the time (in seconds) this grant was issued at- Returns:
- the seconds
-
setIssuedAt
public void setIssuedAt(long issuedAt) -
getExpiresIn
public long getExpiresIn()Returns the number of seconds this grant can be valid after it was issued- Returns:
- the seconds this grant will be valid for
-
setExpiresIn
public void setExpiresIn(long expiresIn) -
getClient
Returns the reference toClient- Returns:
- the client
-
setClient
-
getApprovedScopes
Gets the scopes explicitly approved by the end user- Returns:
- the approved scopes
-
setApprovedScopes
Sets the scopes explicitly approved by the end user. If this list is empty then the end user had no way to down-scope.- Parameters:
scopes- the approved scopes
-
getSubject
Gets the user subject representing the end user- Returns:
- the subject
-
setSubject
Sets the user subject representing the end user- Parameters:
subject- the subject
-
getAudience
-
setAudience
-
getClientCodeChallenge
-
setClientCodeChallenge
-
getRequestedScopes
-
setRequestedScopes
-
getNonce
-
setNonce
-
isPreauthorizedTokenAvailable
public boolean isPreauthorizedTokenAvailable() -
setPreauthorizedTokenAvailable
public void setPreauthorizedTokenAvailable(boolean preauthorizedTokenAvailable) -
getExtraProperties
-
setExtraProperties
-
getResponseType
-
setResponseType
-
getClientCodeChallengeMethod
-
setClientCodeChallengeMethod
-