Package com.oracle.bmc.auth.internal
Class ImdsRptPathProvider
- java.lang.Object
-
- com.oracle.bmc.auth.internal.AbstractTemplateRptPathProvider
-
- com.oracle.bmc.auth.internal.ImdsRptPathProvider
-
- All Implemented Interfaces:
RptPathProvider
public class ImdsRptPathProvider extends AbstractTemplateRptPathProvider
This path provider is used as a fallback when environment variables are not set.For the path, use the current path: "/20180711/resourcePrincipalToken/{id}" For the resource id, use IMDS to get the instance id
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
METADATA_SERVICE_BASE_URL
Default base url of metadata service.
-
Constructor Summary
Constructors Constructor Description ImdsRptPathProvider(String pathTemplate)
Constructor of ImdsRptPathProvider.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getInstanceIdFromIMDS(String metadataServiceBaseUrl)
protected Map<String,String>
getReplacements()
-
Methods inherited from class com.oracle.bmc.auth.internal.AbstractTemplateRptPathProvider
getPath
-
-
-
-
Field Detail
-
METADATA_SERVICE_BASE_URL
protected static final String METADATA_SERVICE_BASE_URL
Default base url of metadata service.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImdsRptPathProvider
public ImdsRptPathProvider(String pathTemplate)
Constructor of ImdsRptPathProvider.- Parameters:
pathTemplate
- string template with placeholders like “{id}”
-
-
Method Detail
-
getReplacements
protected Map<String,String> getReplacements()
- Specified by:
getReplacements
in classAbstractTemplateRptPathProvider
-
-