Package com.oracle.bmc.auth
Class ConfigFileAuthenticationDetailsProvider.ConfigFileSimpleAuthenticationDetailsProvider
- java.lang.Object
-
- com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider.ConfigFileSimpleAuthenticationDetailsProvider
-
- All Implemented Interfaces:
AbstractAuthenticationDetailsProvider
,AuthenticationDetailsProvider
,BasicAuthenticationDetailsProvider
,BasicConfigFileAuthenticationProvider
- Enclosing class:
- ConfigFileAuthenticationDetailsProvider
protected static class ConfigFileAuthenticationDetailsProvider.ConfigFileSimpleAuthenticationDetailsProvider extends Object implements BasicConfigFileAuthenticationProvider
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConfigFileSimpleAuthenticationDetailsProvider(ConfigFileReader.ConfigFile configFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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()
Deprecated.char[]
getPassphraseCharacters()
Deprecated.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
-
ConfigFileSimpleAuthenticationDetailsProvider
protected ConfigFileSimpleAuthenticationDetailsProvider(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.
-
getPassPhrase
@Deprecated public String getPassPhrase()
Deprecated.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
@Deprecated public char[] getPassphraseCharacters()
Deprecated.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
-
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.
-
getKeyId
public String getKeyId()
Description copied from interface:BasicAuthenticationDetailsProvider
Returns the keyId used to sign requests.- Specified by:
getKeyId
in interfaceBasicAuthenticationDetailsProvider
- Returns:
- The keyId.
-
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
-
-