|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.client.oauth2.TokenResult
public class TokenResult
Class that contains a result of the Authorization Flow including a access token.
All result properties can be get by the method getAllProperties(). Some of the properties
are standardized by the OAuth 2 specification and therefore the class contains getters that extract
these properties from the property map.
| Constructor Summary | |
|---|---|
TokenResult(Map<String,String> properties)
Create a new instance initiated from the property map. |
|
| Method Summary | |
|---|---|
String |
getAccessToken()
Get access token. |
Map<String,String> |
getAllProperties()
Get the map of all properties returned in the Access Token Response. |
Long |
getExpiresIn()
Get expiration time of the access token in seconds. |
String |
getRefreshToken()
Get the refresh token. |
String |
getTokenType()
Get the type of the returned access token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TokenResult(Map<String,String> properties)
properties - Access properties.| Method Detail |
|---|
public String getAccessToken()
public Long getExpiresIn()
access token in seconds.
null if the value is not provided.public String getRefreshToken()
null if the value is not provided.public String getTokenType()
bearer (no cryptography is used)
but provider might support also other kinds of token like mac.
public Map<String,String> getAllProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||