Class AccessToken.Builder (1.18.0)

public static class AccessToken.Builder

Inheritance

java.lang.Object > AccessToken.Builder

Constructors

Builder()

protected Builder()

Builder(AccessToken accessToken)

protected Builder(AccessToken accessToken)
Parameter
NameDescription
accessTokenAccessToken

Methods

build()

public AccessToken build()
Returns
TypeDescription
AccessToken

getExpirationTime()

public Date getExpirationTime()
Returns
TypeDescription
Date

getScopes()

public List<String> getScopes()
Returns
TypeDescription
List<String>

getTokenValue()

public String getTokenValue()
Returns
TypeDescription
String

setExpirationTime(Date expirationTime)

public AccessToken.Builder setExpirationTime(Date expirationTime)
Parameter
NameDescription
expirationTimeDate
Returns
TypeDescription
AccessToken.Builder

setScopes(String scopes)

public AccessToken.Builder setScopes(String scopes)
Parameter
NameDescription
scopesString
Returns
TypeDescription
AccessToken.Builder

setScopes(List<String> scopes)

public AccessToken.Builder setScopes(List<String> scopes)
Parameter
NameDescription
scopesList<String>
Returns
TypeDescription
AccessToken.Builder

setTokenValue(String tokenValue)

public AccessToken.Builder setTokenValue(String tokenValue)
Parameter
NameDescription
tokenValueString
Returns
TypeDescription
AccessToken.Builder