public class AccessToken extends BaseBean
| Constructor and Description | 
|---|
AccessToken()
default constructor 
 | 
AccessToken(String token,
           String scope,
           long expiresIn,
           String discoveryUrl)
constructor to initialize the bean 
 | 
AccessToken(String token,
           String scope,
           long expiresIn,
           String discoveryUrl,
           Map<String,String> metaData)
constructor to initialize the bean 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getDiscoveryUrl()
Gets discovery url. 
 | 
long | 
getExpiresIn()
Gets expires in. 
 | 
Map<String,String> | 
getMetaData()
Gets meta data. 
 | 
String | 
getScope()
Gets scope. 
 | 
String | 
getToken()
Gets token. 
 | 
void | 
setDiscoveryUrl(String discoveryUrl)
Sets discovery url. 
 | 
void | 
setExpiresIn(long expiresIn)
sets expiry duration of token 
 | 
void | 
setMetaData(Map<String,String> metaData)
Sets meta data. 
 | 
void | 
setScope(String scope)
Sets Access Token scope string 
 | 
void | 
setToken(String token)
Sets Access Token String 
 | 
String | 
toString()
Convert this object to string 
 | 
public AccessToken()
public AccessToken(String token, String scope, long expiresIn, String discoveryUrl)
token - the tokenscope - the scopeexpiresIn - the expires indiscoveryUrl - the discovery urlpublic AccessToken(String token, String scope, long expiresIn, String discoveryUrl, Map<String,String> metaData)
token - the tokenscope - the scopeexpiresIn - the expires indiscoveryUrl - the discovery urlmetaData - then meta data of tokenpublic String getToken()
public void setToken(String token)
token - the tokenpublic String getScope()
public void setScope(String scope)
scope - the scopepublic long getExpiresIn()
public void setExpiresIn(long expiresIn)
expiresIn - the expires inpublic String getDiscoveryUrl()
public void setDiscoveryUrl(String discoveryUrl)
discoveryUrl - the discovery urlpublic void setMetaData(Map<String,String> metaData)
metaData - the meta dataCopyright © 2018. All rights reserved.