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