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() |
long |
getExpiresIn()
Returns the number of seconds this grant can be valid after it was issued
|
long |
getIssuedAt()
Returns the time (in seconds) this grant was issued at
|
long |
getLifetime()
Deprecated.
|
List<String> |
getRequestedScopes() |
UserSubject |
getSubject()
Gets the user subject representing the end user
|
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 |
setExpiresIn(long expiresIn) |
void |
setIssuedAt(long issuedAt) |
void |
setRequestedScopes(List<String> requestedScopes) |
void |
setSubject(UserSubject subject)
Sets the user subject representing the end user
|
getCode, getRedirectUri, getType, setCode, setRedirectUri, toMap
public ServerAuthorizationCodeGrant()
public ServerAuthorizationCodeGrant(Client client, long lifetime)
public long getIssuedAt()
public void setIssuedAt(long issuedAt)
@Deprecated public long getLifetime()
public long getExpiresIn()
public void setExpiresIn(long expiresIn)
public void setClient(Client c)
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 getClientCodeChallenge()
public void setClientCodeChallenge(String clientCodeChallenge)
Apache CXF