@Entity public class ServerAuthorizationCodeGrant extends AuthorizationCodeGrant
Constructor and Description |
---|
ServerAuthorizationCodeGrant() |
ServerAuthorizationCodeGrant(Client client,
long lifetime) |
ServerAuthorizationCodeGrant(Client client,
String code,
long expiresIn,
long issuedAt) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getApprovedScopes()
Gets the scopes explicitly approved by the end user
|
String |
getAudience() |
Client |
getClient()
Returns the reference to
Client |
String |
getClientCodeChallenge() |
String |
getClientCodeChallengeMethod() |
long |
getExpiresIn()
Returns the number of seconds this grant can be valid after it was issued
|
Map<String,String> |
getExtraProperties() |
long |
getIssuedAt()
Returns the time (in seconds) this grant was issued at
|
String |
getNonce() |
List<String> |
getRequestedScopes() |
String |
getResponseType() |
UserSubject |
getSubject()
Gets the user subject representing the end user
|
boolean |
isPreauthorizedTokenAvailable() |
void |
setApprovedScopes(List<String> scopes)
Sets the scopes explicitly approved by the end user.
|
void |
setAudience(String audience) |
void |
setClient(Client c) |
void |
setClientCodeChallenge(String clientCodeChallenge) |
void |
setClientCodeChallengeMethod(String clientCodeChallengeMethod) |
void |
setExpiresIn(long expiresIn) |
void |
setExtraProperties(Map<String,String> extraProperties) |
void |
setIssuedAt(long issuedAt) |
void |
setNonce(String nonce) |
void |
setPreauthorizedTokenAvailable(boolean preauthorizedTokenAvailable) |
void |
setRequestedScopes(List<String> requestedScopes) |
void |
setResponseType(String responseType) |
void |
setSubject(UserSubject subject)
Sets the user subject representing the end user
|
getCode, getCodeVerifier, getRedirectUri, getType, setCode, setCodeVerifier, setRedirectUri, toMap
public ServerAuthorizationCodeGrant()
public ServerAuthorizationCodeGrant(Client client, long lifetime)
public long getIssuedAt()
public void setIssuedAt(long issuedAt)
public long getExpiresIn()
public void setExpiresIn(long expiresIn)
public void setClient(Client c)
public List<String> getApprovedScopes()
public void setApprovedScopes(List<String> scopes)
scopes
- the approved scopespublic UserSubject getSubject()
public void setSubject(UserSubject subject)
subject
- the subjectpublic String getAudience()
public void setAudience(String audience)
public String getClientCodeChallenge()
public void setClientCodeChallenge(String clientCodeChallenge)
public String getNonce()
public void setNonce(String nonce)
public boolean isPreauthorizedTokenAvailable()
public void setPreauthorizedTokenAvailable(boolean preauthorizedTokenAvailable)
public String getResponseType()
public void setResponseType(String responseType)
public String getClientCodeChallengeMethod()
public void setClientCodeChallengeMethod(String clientCodeChallengeMethod)
Apache CXF