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

public Class DefaultRptPathProvider

extends AbstractTemplateRptPathProvider
Class Inheritance
Imports
org.slf4j.Logger, java.util.Map

This path provider makes sure the behavior happens with the correct fallback.

For the path, Use the contents of the OCI_RESOURCE_PRINCIPAL_RPT_PATH environment variable, if set. Otherwise, use the current path: "/20180711/resourcePrincipalToken/{id}"

For the resource id, Use the contents of the OCI_RESOURCE_PRINCIPAL_RPT_ID environment variable, if set. Otherwise, use IMDS to get the instance id

This path provider is used when the caller doesn't provide a specific path provider to the resource principals signer

Field Summary

Modifier and TypeField and Description
private static final Logger
private final Map<String, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Map<String, String>
private static String
protected Map<String, String>
Inherited from com.oracle.bmc.auth.internal.AbstractTemplateRptPathProvider:
getPath

Field Detail

LOGback to summary
private static final Logger LOG

Hides com.oracle.bmc.auth.internal.AbstractTemplateRptPathProvider.LOG.

replacementsback to summary
private final Map<String, String> replacements

Constructor Detail

DefaultRptPathProviderback to summary
public DefaultRptPathProvider()

Method Detail

buildReplacementsback to summary
private Map<String, String> buildReplacements()
getPathTemplateback to summary
private static String getPathTemplate()
getReplacementsback to summary
protected Map<String, String> getReplacements()

Implements abstract com.oracle.bmc.auth.internal.AbstractTemplateRptPathProvider.getReplacements.

Annotations
@Override