|
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.oauth.data.Token
public abstract class Token
Base Token representation
Constructor Summary | |
---|---|
protected |
Token(Client client,
String tokenKey,
String tokenSecret,
long lifetime,
long issuedAt)
|
Method Summary | |
---|---|
Client |
getClient()
Returns the Client associated with this token |
long |
getIssuedAt()
Returns the time (in seconds) when this token was issued at |
long |
getLifetime()
Returns the number of seconds this token can be valid after it was issued |
List<OAuthPermission> |
getScopes()
Returns a list of opaque permissions/scopes |
UserSubject |
getSubject()
Returns a subject capturing the login name the end user used to login to the resource server when authorizing a given client request |
String |
getTokenKey()
Returns the token key |
String |
getTokenSecret()
Returns the token secret |
boolean |
isPreAuthorized()
|
void |
setPreAuthorized(boolean preAuthorized)
|
void |
setScopes(List<OAuthPermission> scopes)
Sets a list of opaque permissions/scopes |
void |
setSubject(UserSubject subject)
Sets a subject capturing the login name the end user used to login to the resource server when authorizing a given client request |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Token(Client client, String tokenKey, String tokenSecret, long lifetime, long issuedAt)
Method Detail |
---|
public Client getClient()
public String getTokenKey()
public String getTokenSecret()
public long getIssuedAt()
public long getLifetime()
public List<OAuthPermission> getScopes()
public void setScopes(List<OAuthPermission> scopes)
scopes
- the scopespublic void setSubject(UserSubject subject)
subject
- public UserSubject getSubject()
public void setPreAuthorized(boolean preAuthorized)
public boolean isPreAuthorized()
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |