Package com.oracle.bmc.auth
Class ConfigFileAuthenticationDetailsProvider.ConfigFileInstancePrincipalAuthenticationDetailsProvider
- java.lang.Object
 - 
- com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider.ConfigFileInstancePrincipalAuthenticationDetailsProvider
 
 
- 
- All Implemented Interfaces:
 AbstractAuthenticationDetailsProvider,AuthenticationDetailsProvider,BasicAuthenticationDetailsProvider,BasicConfigFileAuthenticationProvider
- Enclosing class:
 - ConfigFileAuthenticationDetailsProvider
 
protected static class ConfigFileAuthenticationDetailsProvider.ConfigFileInstancePrincipalAuthenticationDetailsProvider extends Object implements BasicConfigFileAuthenticationProvider
 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedConfigFileInstancePrincipalAuthenticationDetailsProvider(ConfigFileReader.ConfigFile configFile) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ClientConfigurator>getClientConfigurators()Get the list of ClientConfiguratorsStringgetFingerprint()Returns the fingerprint of the key being used.StringgetKeyId()Returns the keyId used to sign requests.StringgetPassPhrase()Returns the optional pass phrase for the (encrypted) private key.char[]getPassphraseCharacters()Returns the optional pass phrase for the (encrypted) private key, as a character array.StringgetPemFilePath()Get the PEM file pathInputStreamgetPrivateKey()Returns a new InputStream to the private key.StringgetTenantId()Returns the tenant OCID.StringgetUserId()Returns the user OCID. 
 - 
 
- 
- 
Constructor Detail
- 
ConfigFileInstancePrincipalAuthenticationDetailsProvider
protected ConfigFileInstancePrincipalAuthenticationDetailsProvider(ConfigFileReader.ConfigFile configFile)
 
 - 
 
- 
Method Detail
- 
getFingerprint
public String getFingerprint()
Description copied from interface:AuthenticationDetailsProviderReturns the fingerprint of the key being used.- Specified by:
 getFingerprintin interfaceAuthenticationDetailsProvider- Returns:
 - The fingerprint.
 
 
- 
getTenantId
public String getTenantId()
Description copied from interface:AuthenticationDetailsProviderReturns the tenant OCID.- Specified by:
 getTenantIdin interfaceAuthenticationDetailsProvider- Returns:
 - The tenant OCID.
 
 
- 
getUserId
public String getUserId()
Description copied from interface:AuthenticationDetailsProviderReturns the user OCID.- Specified by:
 getUserIdin interfaceAuthenticationDetailsProvider- Returns:
 - The user OCID.
 
 
- 
getKeyId
public String getKeyId()
Description copied from interface:BasicAuthenticationDetailsProviderReturns the keyId used to sign requests.- Specified by:
 getKeyIdin interfaceBasicAuthenticationDetailsProvider- Returns:
 - The keyId.
 
 
- 
getPrivateKey
public InputStream getPrivateKey()
Description copied from interface:BasicAuthenticationDetailsProviderReturns a new InputStream to the private key.This stream should be closed by the caller, implementations should return new streams each time.
- Specified by:
 getPrivateKeyin interfaceBasicAuthenticationDetailsProvider- Returns:
 - A new InputStream.
 
 
- 
getPassPhrase
public String getPassPhrase()
Description copied from interface:BasicAuthenticationDetailsProviderReturns the optional pass phrase for the (encrypted) private key.- Specified by:
 getPassPhrasein interfaceBasicAuthenticationDetailsProvider- Returns:
 - The pass phrase, or null if not applicable
 
 
- 
getPassphraseCharacters
public char[] getPassphraseCharacters()
Description copied from interface:BasicAuthenticationDetailsProviderReturns the optional pass phrase for the (encrypted) private key, as a character array.- Specified by:
 getPassphraseCharactersin interfaceBasicAuthenticationDetailsProvider- Returns:
 - The pass phrase as character array, or null if not applicable
 
 
- 
getPemFilePath
public String getPemFilePath()
Description copied from interface:BasicConfigFileAuthenticationProviderGet the PEM file path- Specified by:
 getPemFilePathin interfaceBasicConfigFileAuthenticationProvider- Returns:
 - The path to the PEM file
 
 
- 
getClientConfigurators
public List<ClientConfigurator> getClientConfigurators()
Description copied from interface:BasicConfigFileAuthenticationProviderGet the list of ClientConfigurators- Specified by:
 getClientConfiguratorsin interfaceBasicConfigFileAuthenticationProvider- Returns:
 - a list of ClientConfigurators
 
 
 - 
 
 -