Class IdTokenCredentials.Builder (1.25.0)

public static class IdTokenCredentials.Builder extends OAuth2Credentials.Builder

Inheritance

java.lang.Object > OAuth2Credentials.Builder > IdTokenCredentials.Builder

Constructors

Builder()

protected Builder()

Methods

build()

public IdTokenCredentials build()
Returns
Type Description
IdTokenCredentials
Overrides

getIdTokenProvider()

public IdTokenProvider getIdTokenProvider()
Returns
Type Description
IdTokenProvider

getOptions()

public List<IdTokenProvider.Option> getOptions()
Returns
Type Description
List<Option>

getTargetAudience()

public String getTargetAudience()
Returns
Type Description
String

setIdTokenProvider(IdTokenProvider idTokenProvider)

public IdTokenCredentials.Builder setIdTokenProvider(IdTokenProvider idTokenProvider)
Parameter
Name Description
idTokenProvider IdTokenProvider
Returns
Type Description
IdTokenCredentials.Builder

setOptions(List<IdTokenProvider.Option> options)

public IdTokenCredentials.Builder setOptions(List<IdTokenProvider.Option> options)
Parameter
Name Description
options List<Option>
Returns
Type Description
IdTokenCredentials.Builder

setTargetAudience(String targetAudience)

public IdTokenCredentials.Builder setTargetAudience(String targetAudience)
Parameter
Name Description
targetAudience String
Returns
Type Description
IdTokenCredentials.Builder