Class OAuth2Credentials.Builder (1.18.0)

public static class OAuth2Credentials.Builder

Inheritance

java.lang.Object > OAuth2Credentials.Builder

Constructors

Builder()

protected Builder()

Builder(OAuth2Credentials credentials)

protected Builder(OAuth2Credentials credentials)
Parameter
NameDescription
credentialsOAuth2Credentials

Methods

build()

public OAuth2Credentials build()
Returns
TypeDescription
OAuth2Credentials

getAccessToken()

public AccessToken getAccessToken()
Returns
TypeDescription
AccessToken

getExpirationMargin()

public Duration getExpirationMargin()
Returns
TypeDescription
Duration

getRefreshMargin()

public Duration getRefreshMargin()
Returns
TypeDescription
Duration

setAccessToken(AccessToken token)

public OAuth2Credentials.Builder setAccessToken(AccessToken token)
Parameter
NameDescription
tokenAccessToken
Returns
TypeDescription
OAuth2Credentials.Builder

setExpirationMargin(Duration expirationMargin)

public OAuth2Credentials.Builder setExpirationMargin(Duration expirationMargin)
Parameter
NameDescription
expirationMarginDuration
Returns
TypeDescription
OAuth2Credentials.Builder

setRefreshMargin(Duration refreshMargin)

public OAuth2Credentials.Builder setRefreshMargin(Duration refreshMargin)
Parameter
NameDescription
refreshMarginDuration
Returns
TypeDescription
OAuth2Credentials.Builder