Top Description Fields Constructors Methods
com.oracle.bmc.auth

public Class DefaultServiceAccountTokenProvider

extends AbstractServiceAccountTokenSupplier
Class Inheritance
Imports
com.oracle.bmc.auth.internal.JwtClaimsSet, org.slf4j.Logger, java.io.IOException, java.nio.file.Files, .Paths, java.text.ParseException, java.time.Duration, .Instant, java.util.Date

Implementation of ServiceAccountTokenSupplier that allows to pass in a token path to read kubernetes service account token If not set, then use default service account token path /var/run/secrets/kubernetes.io/serviceaccount/toke

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
protected String
Inherited from com.oracle.bmc.auth.AbstractServiceAccountTokenSupplier:
getServiceAccountToken

Field Detail

KUBERNETES_SERVICE_ACCOUNT_TOKEN_PATHback to summary
private final String KUBERNETES_SERVICE_ACCOUNT_TOKEN_PATH
tokenPathback to summary
private final String tokenPath

Constructor Detail

DefaultServiceAccountTokenProviderback to summary
public DefaultServiceAccountTokenProvider()
DefaultServiceAccountTokenProviderback to summary
public DefaultServiceAccountTokenProvider(String tokenPath)

Method Detail

getTokenInnerback to summary
protected String getTokenInner() throws IOException

Implements abstract com.oracle.bmc.auth.AbstractServiceAccountTokenSupplier.getTokenInner.

Annotations
@Override