public class ServerAuthorizationCodeGrant extends AuthorizationCodeGrant
| Constructor and Description |
|---|
ServerAuthorizationCodeGrant(Client client,
long lifetime) |
ServerAuthorizationCodeGrant(Client client,
String code,
long lifetime,
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 |
long |
getIssuedAt()
Returns the time (in seconds) this grant was issued at
|
long |
getLifetime()
Returns the number of seconds this grant can be valid after it was issued
|
UserSubject |
getSubject()
Gets the user subject representing the end user
|
String |
getTempClientSecretHash() |
void |
setApprovedScopes(List<String> scopes)
Sets the scopes explicitly approved by the end user.
|
void |
setAudience(String audience) |
void |
setSubject(UserSubject subject)
Sets the user subject representing the end user
|
void |
setTempClientSecretHash(String tempClientSecretHash) |
getCode, getRedirectUri, getType, setRedirectUri, toMappublic ServerAuthorizationCodeGrant(Client client, long lifetime)
public long getIssuedAt()
public long getLifetime()
public void setApprovedScopes(List<String> scopes)
approvedScope - the approved scopespublic List<String> getApprovedScopes()
public void setSubject(UserSubject subject)
subject - the subjectpublic UserSubject getSubject()
public String getAudience()
public void setAudience(String audience)
public String getTempClientSecretHash()
public void setTempClientSecretHash(String tempClientSecretHash)
Apache CXF