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 SummaryConstructors Modifier Constructor Description protectedConfigFileInstancePrincipalAuthenticationDetailsProvider(ConfigFileReader.ConfigFile configFile)
 - 
Method SummaryAll 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- 
ConfigFileInstancePrincipalAuthenticationDetailsProviderprotected ConfigFileInstancePrincipalAuthenticationDetailsProvider(ConfigFileReader.ConfigFile configFile) 
 
- 
 - 
Method Detail- 
getFingerprintpublic String getFingerprint() Description copied from interface:AuthenticationDetailsProviderReturns the fingerprint of the key being used.- Specified by:
- getFingerprintin interface- AuthenticationDetailsProvider
- Returns:
- The fingerprint.
 
 - 
getTenantIdpublic String getTenantId() Description copied from interface:AuthenticationDetailsProviderReturns the tenant OCID.- Specified by:
- getTenantIdin interface- AuthenticationDetailsProvider
- Returns:
- The tenant OCID.
 
 - 
getUserIdpublic String getUserId() Description copied from interface:AuthenticationDetailsProviderReturns the user OCID.- Specified by:
- getUserIdin interface- AuthenticationDetailsProvider
- Returns:
- The user OCID.
 
 - 
getKeyIdpublic String getKeyId() Description copied from interface:BasicAuthenticationDetailsProviderReturns the keyId used to sign requests.- Specified by:
- getKeyIdin interface- BasicAuthenticationDetailsProvider
- Returns:
- The keyId.
 
 - 
getPrivateKeypublic 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 interface- BasicAuthenticationDetailsProvider
- Returns:
- A new InputStream.
 
 - 
getPassPhrasepublic String getPassPhrase() Description copied from interface:BasicAuthenticationDetailsProviderReturns the optional pass phrase for the (encrypted) private key.- Specified by:
- getPassPhrasein interface- BasicAuthenticationDetailsProvider
- Returns:
- The pass phrase, or null if not applicable
 
 - 
getPassphraseCharacterspublic char[] getPassphraseCharacters() Description copied from interface:BasicAuthenticationDetailsProviderReturns the optional pass phrase for the (encrypted) private key, as a character array.- Specified by:
- getPassphraseCharactersin interface- BasicAuthenticationDetailsProvider
- Returns:
- The pass phrase as character array, or null if not applicable
 
 - 
getPemFilePathpublic String getPemFilePath() Description copied from interface:BasicConfigFileAuthenticationProviderGet the PEM file path- Specified by:
- getPemFilePathin interface- BasicConfigFileAuthenticationProvider
- Returns:
- The path to the PEM file
 
 - 
getClientConfiguratorspublic List<ClientConfigurator> getClientConfigurators() Description copied from interface:BasicConfigFileAuthenticationProviderGet the list of ClientConfigurators- Specified by:
- getClientConfiguratorsin interface- BasicConfigFileAuthenticationProvider
- Returns:
- a list of ClientConfigurators
 
 
- 
 
-