Class OAuth2Credentials.Builder (1.25.0)

public static class OAuth2Credentials.Builder

Inheritance

java.lang.Object > OAuth2Credentials.Builder

Constructors

Builder()

protected Builder()

Builder(OAuth2Credentials credentials)

protected Builder(OAuth2Credentials credentials)
Parameter
Name Description
credentials OAuth2Credentials

Methods

build()

public OAuth2Credentials build()
Returns
Type Description
OAuth2Credentials

getAccessToken()

public AccessToken getAccessToken()
Returns
Type Description
AccessToken

getExpirationMargin()

public Duration getExpirationMargin()
Returns
Type Description
Duration

getRefreshMargin()

public Duration getRefreshMargin()
Returns
Type Description
Duration

setAccessToken(AccessToken token)

public OAuth2Credentials.Builder setAccessToken(AccessToken token)
Parameter
Name Description
token AccessToken
Returns
Type Description
OAuth2Credentials.Builder

setExpirationMargin(Duration expirationMargin)

public OAuth2Credentials.Builder setExpirationMargin(Duration expirationMargin)
Parameter
Name Description
expirationMargin Duration
Returns
Type Description
OAuth2Credentials.Builder

setRefreshMargin(Duration refreshMargin)

public OAuth2Credentials.Builder setRefreshMargin(Duration refreshMargin)
Parameter
Name Description
refreshMargin Duration
Returns
Type Description
OAuth2Credentials.Builder