Show / Hide Table of Contents

Class FilePrivateKeySupplier

A file-based key provider. This class reads private key from a pem key file.

Inheritance
object
FilePrivateKeySupplier
FileSecurePrivateKeySupplier
Implements
ISupplier<RsaKeyParameters>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.Common.Auth
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public class FilePrivateKeySupplier : ISupplier<RsaKeyParameters>

Constructors

FilePrivateKeySupplier(string, SecureString)

Declaration
public FilePrivateKeySupplier(string pemFilePath, SecureString passPhrase)
Parameters
Type Name Description
string pemFilePath
SecureString passPhrase

Fields

key

Declaration
protected RsaKeyParameters key
Field Value
Type Description
RsaKeyParameters

passPhrase

Declaration
protected readonly SecureString passPhrase
Field Value
Type Description
SecureString

pemFilePath

Declaration
protected readonly string pemFilePath
Field Value
Type Description
string

Methods

GetKey()

Returns the private key.

Declaration
public RsaKeyParameters GetKey()
Returns
Type Description
RsaKeyParameters

The private key from key pair.

Implements

ISupplier<T>
In this article
Back to top