public class TokenResult extends Object
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 and Description |
---|
TokenResult(Map<String,Object> properties)
Create a new instance initiated from the property map.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken()
Get access token.
|
Map<String,Object> |
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.
|
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
.Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.