public class Token extends Object implements Serializable
Token class is a simple value object that contains response from Authorization Server
| Modifier and Type | Field and Description |
|---|---|
private String |
access_token |
private long |
expires_in |
private String |
id_token |
private String |
refresh_token |
private String |
scope |
private static long |
serialVersionUID |
private String |
token_type |
| Constructor and Description |
|---|
Token()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAccess_token()
Returns the access token issued by token server
|
long |
getExpires_in()
Returns token expiration time in seconds
|
String |
getId_token() |
String |
getRefresh_token() |
String |
getScope()
Returns the scope of the access token
|
String |
getToken_type()
Returns token type value of this Token
|
void |
setAccess_token(String access_token)
Sets the access token
|
void |
setExpires_in(long expires_in)
Sets the expiration time of token since issued
|
void |
setId_token(String id_token) |
void |
setRefresh_token(String refresh_token) |
void |
setScope(String scope)
Sets the scope on this Token
|
void |
setToken_type(String token_type)
Sets the value of token_type to Bearer
|
String |
toString() |
private static final long serialVersionUID
private long expires_in
private String access_token
private String id_token
private String refresh_token
private String scope
private String token_type
public String getAccess_token()
public void setAccess_token(String access_token)
access_token - maps the value of access tokenpublic long getExpires_in()
public void setExpires_in(long expires_in)
expires_in - maps the value of expiration time in secondspublic String getId_token()
public void setId_token(String id_token)
id_token - the id_token to setpublic String getRefresh_token()
public void setRefresh_token(String refresh_token)
refresh_token - the refresh_token to setpublic String getScope()
Scopepublic void setScope(String scope)
scope - maps the value of scopepublic String getToken_type()
public void setToken_type(String token_type)
token_type - maps the value of token_typeCopyright © 2016 ADP LLC. All rights reserved.