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 SummaryFields Modifier and Type Field Description protected static StringMETADATA_SERVICE_BASE_URLDefault base url of metadata service.
 - 
Constructor SummaryConstructors Constructor Description ImdsRptPathProvider(String pathTemplate)Constructor of ImdsRptPathProvider.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetInstanceIdFromIMDS(String metadataServiceBaseUrl)protected Map<String,String>getReplacements()- 
Methods inherited from class com.oracle.bmc.auth.internal.AbstractTemplateRptPathProvidergetPath
 
- 
 
- 
- 
- 
Field Detail- 
METADATA_SERVICE_BASE_URLprotected static final String METADATA_SERVICE_BASE_URL Default base url of metadata service.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ImdsRptPathProviderpublic ImdsRptPathProvider(String pathTemplate) Constructor of ImdsRptPathProvider.- Parameters:
- pathTemplate- string template with placeholders like “{id}”
 
 
- 
 - 
Method Detail- 
getReplacementsprotected Map<String,String> getReplacements() - Specified by:
- getReplacementsin class- AbstractTemplateRptPathProvider
 
 
- 
 
-