|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeGrant
org.apache.cxf.rs.security.oauth2.grants.code.ServerAuthorizationCodeGrant
public class ServerAuthorizationCodeGrant
The Authorization Code Grant representation visible to the server
| Constructor Summary | |
|---|---|
ServerAuthorizationCodeGrant(Client client,
long lifetime)
|
|
ServerAuthorizationCodeGrant(Client client,
String code,
long lifetime,
long issuedAt)
|
|
| Method Summary | |
|---|---|
List<String> |
getApprovedScopes()
Gets the scopes explicitly approved by the end user |
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 |
void |
setApprovedScopes(List<String> scopes)
Sets the scopes explicitly approved by the end user. |
void |
setSubject(UserSubject subject)
Sets the user subject representing the end user |
| Methods inherited from class org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeGrant |
|---|
getCode, getRedirectUri, getType, setRedirectUri, toMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerAuthorizationCodeGrant(Client client,
long lifetime)
public ServerAuthorizationCodeGrant(Client client,
String code,
long lifetime,
long issuedAt)
| Method Detail |
|---|
public long getIssuedAt()
public long getLifetime()
public Client getClient()
Client
public void setApprovedScopes(List<String> scopes)
approvedScope - the approved scopespublic List<String> getApprovedScopes()
public void setSubject(UserSubject subject)
subject - the subjectpublic UserSubject getSubject()
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||