|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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()
|
|
ServerAuthorizationCodeGrant(Client client,
long lifetime)
|
|
ServerAuthorizationCodeGrant(Client client,
String code,
long expiresIn,
long issuedAt)
|
Method Summary | |
---|---|
List<String> |
getApprovedScopes()
Gets the scopes explicitly approved by the end user |
String |
getAudience()
|
Client |
getClient()
Returns the reference to Client |
String |
getClientCodeVerifier()
|
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. |
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 |
setClientCodeVerifier(String clientCodeVerifier)
|
void |
setExpiresIn(long expiresIn)
|
void |
setIssuedAt(long issuedAt)
|
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, setCode, setRedirectUri, toMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerAuthorizationCodeGrant()
public ServerAuthorizationCodeGrant(Client client, long lifetime)
public ServerAuthorizationCodeGrant(Client client, String code, long expiresIn, long issuedAt)
Method Detail |
---|
public long getIssuedAt()
public void setIssuedAt(long issuedAt)
@Deprecated public long getLifetime()
public long getExpiresIn()
public void setExpiresIn(long expiresIn)
public Client getClient()
Client
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 getClientCodeVerifier()
public void setClientCodeVerifier(String clientCodeVerifier)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |