Top Description Inners Fields Constructors Methods
com.oracle.bmc.auth

public Class ConfigFileAuthenticationDetailsProvider

extends Object
implements AuthenticationDetailsProvider, RegionProvider, ProvidesClientConfigurators
Class Inheritance
All Implemented Interfaces
com.oracle.bmc.auth.ProvidesClientConfigurators, com.oracle.bmc.auth.RegionProvider, com.oracle.bmc.auth.AuthenticationDetailsProvider, com.oracle.bmc.auth.BasicAuthenticationDetailsProvider, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider
Imports
com.oracle.bmc.internal.Alloy, com.oracle.bmc.ConfigFileReader, .ConfigFileReader.ConfigFile, .Realm, .Region, com.oracle.bmc.auth.internal.ConfigFileDelegationTokenUtils, .DelegationTokenConfigurator, com.oracle.bmc.http.ClientConfigurator, com.oracle.bmc.util.internal.StringUtils, .Validate, org.slf4j.Logger, java.io.IOException, .InputStream, java.util.ArrayList, .List, java.util.function.Supplier

Implementation of AuthenticationDetailsProvider that uses a standard OCI configuration file as an input.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected static class
protected static class
protected static class

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
protected final BasicConfigFileAuthenticationProvider
private static final String
private static final Logger
private static final String
private final Region
private static final String

Constructor Summary

AccessConstructor and Description
public
ConfigFileAuthenticationDetailsProvider(String
profile to load, optional
profile
)

Creates a new instance using the config file at the default location, see ConfigFileReader#DEFAULT_FILE_PATH.

public
ConfigFileAuthenticationDetailsProvider(String
path to the OCI configuration file
configurationFilePath
,
String
profile to load, optional
profile
)

Creates a new instance.

public
ConfigFileAuthenticationDetailsProvider(ConfigFileReader.ConfigFile
The configuration file to use.
configFile
)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
public List<ClientConfigurator>
public String
getFingerprint()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Returns the fingerprint of the key being used.

public String
getKeyId()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Returns the keyId used to sign requests.

public String
getPassPhrase()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Deprecated

Returns the optional pass phrase for the (encrypted) private key.

public char[]
getPassphraseCharacters()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Returns the optional pass phrase for the (encrypted) private key, as a character array.

public String

Returns:

the PEM File Path.
getPemFilePath
()

Returns the file path to the private key.

public InputStream
getPrivateKey()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Returns a new InputStream to the private key.

public Region
public static Region
public String
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

AUTHENTICATION_TYPE_KEYback to summary
private static final String AUTHENTICATION_TYPE_KEY
CONFIG_FILE_DEBUG_INFORMATION_LOGback to summary
private static final String CONFIG_FILE_DEBUG_INFORMATION_LOG
delegateback to summary
protected final BasicConfigFileAuthenticationProvider delegate
INSTANCE_PRINCIPAL_AUTHENTICATION_TYPE_VALUEback to summary
private static final String INSTANCE_PRINCIPAL_AUTHENTICATION_TYPE_VALUE
LOGback to summary
private static final Logger LOG
OCI_REGION_ENV_VAR_NAMEback to summary
private static final String OCI_REGION_ENV_VAR_NAME
regionback to summary
private final Region region
RESOURCE_PRINCIPAL_AUTHENTICATION_TYPE_VALUEback to summary
private static final String RESOURCE_PRINCIPAL_AUTHENTICATION_TYPE_VALUE

Constructor Detail

ConfigFileAuthenticationDetailsProviderback to summary
public ConfigFileAuthenticationDetailsProvider(String profile) throws IOException

Creates a new instance using the config file at the default location, see ConfigFileReader#DEFAULT_FILE_PATH.

Parameters
profile:String

profile to load, optional

Exceptions
IOException:
if the configuration file could not be loaded
ConfigFileAuthenticationDetailsProviderback to summary
public ConfigFileAuthenticationDetailsProvider(String configurationFilePath, String profile) throws IOException

Creates a new instance.

Parameters
configurationFilePath:String

path to the OCI configuration file

profile:String

profile to load, optional

Exceptions
IOException:
if the configuration file could not be loaded
ConfigFileAuthenticationDetailsProviderback to summary
public ConfigFileAuthenticationDetailsProvider(ConfigFileReader.ConfigFile configFile)

Creates a new instance.

Parameters
configFile:ConfigFileReader.ConfigFile

The configuration file to use.

Method Detail

getClientConfiguratorsback to summary
public List<ClientConfigurator> getClientConfigurators()

Implements com.oracle.bmc.auth.ProvidesClientConfigurators.getClientConfigurators.

Annotations
@Override
getFingerprintback to summary
public String getFingerprint()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Returns the fingerprint of the key being used.

Returns:String

The fingerprint.

Annotations
@Override
getKeyIdback to summary
public String getKeyId()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Returns the keyId used to sign requests.

Returns:String

The keyId.

Annotations
@Override
getPassPhraseback to summary
public String getPassPhrase()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Deprecated

Returns the optional pass phrase for the (encrypted) private key.

Returns:String

The pass phrase, or null if not applicable

Annotations
@Deprecated
@Override
getPassphraseCharactersback to summary
public char[] getPassphraseCharacters()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Returns the optional pass phrase for the (encrypted) private key, as a character array.

Returns:char[]

The pass phrase as character array, or null if not applicable

Annotations
@Override
getPemFilePathback to summary
public String getPemFilePath()

Returns the file path to the private key.

Returns:String

the PEM File Path.

getPrivateKeyback to summary
public InputStream getPrivateKey()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Returns a new InputStream to the private key. This stream should be closed by the caller, implementations should return new streams each time.

Returns:InputStream

A new InputStream.

Annotations
@Override
getRegionback to summary
public Region getRegion()

Implements com.oracle.bmc.auth.RegionProvider.getRegion.

Doc from com.oracle.bmc.auth.RegionProvider.getRegion.

Returns the region.

Returns:Region

Region object.

Annotations
@Override
getRegionFromConfigFileback to summary
public static Region getRegionFromConfigFile(ConfigFileReader.ConfigFile configFile)
getTenantIdback to summary
public String getTenantId()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getTenantId.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getTenantId.

Returns the tenant OCID.

Returns:String

The tenant OCID.

Annotations
@Override
getUserIdback to summary
public String getUserId()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getUserId.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getUserId.

Returns the user OCID.

Returns:String

The user OCID.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

com.oracle.bmc.auth back to summary

protected Class ConfigFileAuthenticationDetailsProvider.ConfigFileInstancePrincipalAuthenticationDetailsProvider

extends Object
implements BasicConfigFileAuthenticationProvider
Class Inheritance
  • java.lang.Object
  • com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider.ConfigFileInstancePrincipalAuthenticationDetailsProvider
All Implemented Interfaces
com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider, com.oracle.bmc.auth.AuthenticationDetailsProvider, com.oracle.bmc.auth.BasicAuthenticationDetailsProvider, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider

Field Summary

Modifier and TypeField and Description
private final List<ClientConfigurator>
private final InstancePrincipalsAuthenticationDetailsProvider
private final String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public List<ClientConfigurator>
public String
getFingerprint()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Returns the fingerprint of the key being used.

public String
getKeyId()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Returns the keyId used to sign requests.

public String
getPassPhrase()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Returns the optional pass phrase for the (encrypted) private key.

public char[]
getPassphraseCharacters()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Returns the optional pass phrase for the (encrypted) private key, as a character array.

public String
public InputStream
getPrivateKey()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Returns a new InputStream to the private key.

public String
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clientConfiguratorsback to summary
private final List<ClientConfigurator> clientConfigurators
delegateback to summary
private final InstancePrincipalsAuthenticationDetailsProvider delegate
tenantIdback to summary
private final String tenantId

Constructor Detail

ConfigFileInstancePrincipalAuthenticationDetailsProviderback to summary
protected ConfigFileInstancePrincipalAuthenticationDetailsProvider(ConfigFileReader.ConfigFile configFile)

Method Detail

getClientConfiguratorsback to summary
public List<ClientConfigurator> getClientConfigurators()

Implements com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getClientConfigurators.

Doc from com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getClientConfigurators.

Get the list of ClientConfigurators

Returns:List<ClientConfigurator>

a list of ClientConfigurators

Annotations
@Override
getFingerprintback to summary
public String getFingerprint()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Returns the fingerprint of the key being used.

Returns:String

The fingerprint.

Annotations
@Override
getKeyIdback to summary
public String getKeyId()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Returns the keyId used to sign requests.

Returns:String

The keyId.

Annotations
@Override
getPassPhraseback to summary
public String getPassPhrase()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Returns the optional pass phrase for the (encrypted) private key.

Returns:String

The pass phrase, or null if not applicable

Annotations
@Override
getPassphraseCharactersback to summary
public char[] getPassphraseCharacters()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Returns the optional pass phrase for the (encrypted) private key, as a character array.

Returns:char[]

The pass phrase as character array, or null if not applicable

Annotations
@Override
getPemFilePathback to summary
public String getPemFilePath()

Implements com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getPemFilePath.

Doc from com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getPemFilePath.

Get the PEM file path

Returns:String

The path to the PEM file

Annotations
@Override
getPrivateKeyback to summary
public InputStream getPrivateKey()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Returns a new InputStream to the private key. This stream should be closed by the caller, implementations should return new streams each time.

Returns:InputStream

A new InputStream.

Annotations
@Override
getTenantIdback to summary
public String getTenantId()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getTenantId.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getTenantId.

Returns the tenant OCID.

Returns:String

The tenant OCID.

Annotations
@Override
getUserIdback to summary
public String getUserId()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getUserId.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getUserId.

Returns the user OCID.

Returns:String

The user OCID.

Annotations
@Override
com.oracle.bmc.auth back to summary

protected Class ConfigFileAuthenticationDetailsProvider.ConfigFileResourcePrincipalAuthenticationDetailsProvider

extends Object
implements BasicConfigFileAuthenticationProvider
Class Inheritance
  • java.lang.Object
  • com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider.ConfigFileResourcePrincipalAuthenticationDetailsProvider
All Implemented Interfaces
com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider, com.oracle.bmc.auth.AuthenticationDetailsProvider, com.oracle.bmc.auth.BasicAuthenticationDetailsProvider, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider

Field Summary

Modifier and TypeField and Description
private final List<ClientConfigurator>
private final ResourcePrincipalAuthenticationDetailsProvider
private final String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public List<ClientConfigurator>
public String
getFingerprint()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Returns the fingerprint of the key being used.

public String
getKeyId()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Returns the keyId used to sign requests.

public String
getPassPhrase()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Returns the optional pass phrase for the (encrypted) private key.

public char[]
getPassphraseCharacters()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Returns the optional pass phrase for the (encrypted) private key, as a character array.

public String
public InputStream
getPrivateKey()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Returns a new InputStream to the private key.

public String
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clientConfiguratorsback to summary
private final List<ClientConfigurator> clientConfigurators
delegateback to summary
private final ResourcePrincipalAuthenticationDetailsProvider delegate
tenantIdback to summary
private final String tenantId

Constructor Detail

ConfigFileResourcePrincipalAuthenticationDetailsProviderback to summary
protected ConfigFileResourcePrincipalAuthenticationDetailsProvider(ConfigFileReader.ConfigFile configFile)

Method Detail

getClientConfiguratorsback to summary
public List<ClientConfigurator> getClientConfigurators()

Implements com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getClientConfigurators.

Doc from com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getClientConfigurators.

Get the list of ClientConfigurators

Returns:List<ClientConfigurator>

a list of ClientConfigurators

Annotations
@Override
getFingerprintback to summary
public String getFingerprint()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Returns the fingerprint of the key being used.

Returns:String

The fingerprint.

Annotations
@Override
getKeyIdback to summary
public String getKeyId()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Returns the keyId used to sign requests.

Returns:String

The keyId.

Annotations
@Override
getPassPhraseback to summary
public String getPassPhrase()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Returns the optional pass phrase for the (encrypted) private key.

Returns:String

The pass phrase, or null if not applicable

Annotations
@Override
getPassphraseCharactersback to summary
public char[] getPassphraseCharacters()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Returns the optional pass phrase for the (encrypted) private key, as a character array.

Returns:char[]

The pass phrase as character array, or null if not applicable

Annotations
@Override
getPemFilePathback to summary
public String getPemFilePath()

Implements com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getPemFilePath.

Doc from com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getPemFilePath.

Get the PEM file path

Returns:String

The path to the PEM file

Annotations
@Override
getPrivateKeyback to summary
public InputStream getPrivateKey()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Returns a new InputStream to the private key. This stream should be closed by the caller, implementations should return new streams each time.

Returns:InputStream

A new InputStream.

Annotations
@Override
getTenantIdback to summary
public String getTenantId()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getTenantId.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getTenantId.

Returns the tenant OCID.

Returns:String

The tenant OCID.

Annotations
@Override
getUserIdback to summary
public String getUserId()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getUserId.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getUserId.

Returns the user OCID.

Returns:String

The user OCID.

Annotations
@Override
com.oracle.bmc.auth back to summary

protected Class ConfigFileAuthenticationDetailsProvider.ConfigFileSimpleAuthenticationDetailsProvider

extends Object
implements BasicConfigFileAuthenticationProvider
Class Inheritance
  • java.lang.Object
  • com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider.ConfigFileSimpleAuthenticationDetailsProvider
All Implemented Interfaces
com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider, com.oracle.bmc.auth.AuthenticationDetailsProvider, com.oracle.bmc.auth.BasicAuthenticationDetailsProvider, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider

Field Summary

Modifier and TypeField and Description
private final List<ClientConfigurator>
private final SimpleAuthenticationDetailsProvider
private final String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public List<ClientConfigurator>
public String
getFingerprint()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Returns the fingerprint of the key being used.

public String
getKeyId()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Returns the keyId used to sign requests.

public String
getPassPhrase()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Deprecated

Returns the optional pass phrase for the (encrypted) private key.

public char[]
getPassphraseCharacters()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Deprecated

Returns the optional pass phrase for the (encrypted) private key, as a character array.

public String
public InputStream
getPrivateKey()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Returns a new InputStream to the private key.

public String
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clientConfiguratorsback to summary
private final List<ClientConfigurator> clientConfigurators
delegateback to summary
private final SimpleAuthenticationDetailsProvider delegate
pemFilePathback to summary
private final String pemFilePath

Constructor Detail

ConfigFileSimpleAuthenticationDetailsProviderback to summary
protected ConfigFileSimpleAuthenticationDetailsProvider(ConfigFileReader.ConfigFile configFile)

Method Detail

getClientConfiguratorsback to summary
public List<ClientConfigurator> getClientConfigurators()

Implements com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getClientConfigurators.

Doc from com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getClientConfigurators.

Get the list of ClientConfigurators

Returns:List<ClientConfigurator>

a list of ClientConfigurators

Annotations
@Override
getFingerprintback to summary
public String getFingerprint()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getFingerprint.

Returns the fingerprint of the key being used.

Returns:String

The fingerprint.

getKeyIdback to summary
public String getKeyId()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getKeyId.

Returns the keyId used to sign requests.

Returns:String

The keyId.

getPassPhraseback to summary
public String getPassPhrase()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassPhrase.

Deprecated

Returns the optional pass phrase for the (encrypted) private key.

Returns:String

The pass phrase, or null if not applicable

Annotations
@Deprecated
getPassphraseCharactersback to summary
public char[] getPassphraseCharacters()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPassphraseCharacters.

Deprecated

Returns the optional pass phrase for the (encrypted) private key, as a character array.

Returns:char[]

The pass phrase as character array, or null if not applicable

Annotations
@Deprecated
getPemFilePathback to summary
public String getPemFilePath()

Implements com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getPemFilePath.

Doc from com.oracle.bmc.auth.BasicConfigFileAuthenticationProvider.getPemFilePath.

Get the PEM file path

Returns:String

The path to the PEM file

Annotations
@Override
getPrivateKeyback to summary
public InputStream getPrivateKey()

Implements com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Doc from com.oracle.bmc.auth.BasicAuthenticationDetailsProvider.getPrivateKey.

Returns a new InputStream to the private key. This stream should be closed by the caller, implementations should return new streams each time.

Returns:InputStream

A new InputStream.

getTenantIdback to summary
public String getTenantId()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getTenantId.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getTenantId.

Returns the tenant OCID.

Returns:String

The tenant OCID.

getUserIdback to summary
public String getUserId()

Implements com.oracle.bmc.auth.AuthenticationDetailsProvider.getUserId.

Doc from com.oracle.bmc.auth.AuthenticationDetailsProvider.getUserId.

Returns the user OCID.

Returns:String

The user OCID.