|
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.common.AccessToken
public abstract class AccessToken
Base Access Token representation
Constructor Summary | |
---|---|
protected |
AccessToken()
|
protected |
AccessToken(String tokenType,
String tokenKey)
|
protected |
AccessToken(String tokenType,
String tokenKey,
long expiresIn,
long issuedAt)
|
protected |
AccessToken(String tokenType,
String tokenKey,
long expiresIn,
long issuedAt,
String refreshToken,
Map<String,String> parameters)
|
Method Summary | |
---|---|
long |
getExpiresIn()
The token lifetime |
long |
getIssuedAt()
|
Map<String,String> |
getParameters()
Gets token parameters |
String |
getRefreshToken()
Gets the refresh token key the client can use to obtain a new access token |
String |
getTokenKey()
Returns the token key |
String |
getTokenType()
Returns the token type such as bearer, mac, etc |
void |
setExpiresIn(long expiresIn)
|
void |
setIssuedAt(long issuedAt)
|
void |
setParameters(Map<String,String> parameters)
Sets additional token parameters |
void |
setRefreshToken(String refreshToken)
Sets the refresh token key the client can use to obtain a new access token |
void |
setTokenKey(String key)
|
void |
setTokenType(String type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AccessToken()
protected AccessToken(String tokenType, String tokenKey)
protected AccessToken(String tokenType, String tokenKey, long expiresIn, long issuedAt)
protected AccessToken(String tokenType, String tokenKey, long expiresIn, long issuedAt, String refreshToken, Map<String,String> parameters)
Method Detail |
---|
public String getTokenType()
public void setTokenType(String type)
public String getTokenKey()
public void setTokenKey(String key)
public void setRefreshToken(String refreshToken)
refreshToken
- the refresh tokenpublic String getRefreshToken()
public Map<String,String> getParameters()
public long getExpiresIn()
public void setExpiresIn(long expiresIn)
public long getIssuedAt()
public void setIssuedAt(long issuedAt)
public void setParameters(Map<String,String> parameters)
parameters
- the token parameters
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |