public class DefaultServiceAccountTokenProvider extends AbstractServiceAccountTokenSupplier
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
Constructor and Description |
---|
DefaultServiceAccountTokenProvider() |
DefaultServiceAccountTokenProvider(String tokenPath) |
Modifier and Type | Method and Description |
---|---|
protected String |
getTokenInner() |
getServiceAccountToken
public DefaultServiceAccountTokenProvider()
public DefaultServiceAccountTokenProvider(String tokenPath)
protected String getTokenInner() throws IOException
getTokenInner
in class AbstractServiceAccountTokenSupplier
IOException
Copyright © 2016–2024. All rights reserved.