Class ConfigFileAuthenticationDetailsProvider
An authentication details provider implementation that reads all authentication information from config file.
Inheritance
ConfigFileAuthenticationDetailsProvider
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public class ConfigFileAuthenticationDetailsProvider : IAuthenticationDetailsProvider, IRegionProvider, IUserDelegationDetailsProvider, IBasicAuthenticationDetailsProvider, IAbstractAuthenticationDetailsProvider
Constructors
ConfigFileAuthenticationDetailsProvider(ConfigFile, FilePrivateKeySupplier)
Constructor. Reads from a ConfigFile object.
If ConfigFile specifies an instance principal authentication, auth provider will use instance principals with delegation token. Otherwise,
If a FilePrivateKeySupplier is provided, it will be used to obtain private key. Otherwise,
a FilePrivateKeySupplier object will be created based on information from configFile.
If additional security checks on the private key file are needed, provide a FileSecurePrivateKeySupplier object.
Declaration
public ConfigFileAuthenticationDetailsProvider(ConfigFile configFile, FilePrivateKeySupplier keySupplier = null)
Parameters
ConfigFileAuthenticationDetailsProvider(string, FilePrivateKeySupplier)
Constructor. Reads from the config file at default location.
Declaration
public ConfigFileAuthenticationDetailsProvider(string profile, FilePrivateKeySupplier keySupplier = null)
Parameters
ConfigFileAuthenticationDetailsProvider(string, string, FilePrivateKeySupplier)
Constructor. Reads from the config file at given location.
Declaration
public ConfigFileAuthenticationDetailsProvider(string configurationFilePath, string profile, FilePrivateKeySupplier keySupplier = null)
Parameters
Fields
logger
Declaration
protected static Logger logger
Field Value
Properties
Fingerprint
Declaration
public string Fingerprint { get; }
Property Value
KeyId
Declaration
public string KeyId { get; }
Property Value
PassPhraseCharacters
Declaration
public char[] PassPhraseCharacters { get; }
Property Value
Region
Declaration
public Region Region { get; }
Property Value
TenantId
Declaration
public string TenantId { get; }
Property Value
UserId
Declaration
public string UserId { get; }
Property Value
Methods
GetDelegationToken()
Declaration
public string GetDelegationToken()
Returns
GetPrivateKey()
Declaration
public RsaKeyParameters GetPrivateKey()
Returns
Type |
Description |
RsaKeyParameters |
|
Implements