Show / Hide Table of Contents

Class AuthUtils

A utility class to get information from X509Certificate2 certificates.

Inheritance
object
AuthUtils
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.Utils
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public class AuthUtils

Methods

GetBase64EncodedKey(RsaKeyParameters)

Declaration
public static string GetBase64EncodedKey(RsaKeyParameters key)
Parameters
Type Name Description
RsaKeyParameters key
Returns
Type Description
string

GetFingerPrint(string)

Converts thumbprint to fingerprint.

Declaration
public static string GetFingerPrint(string thumbprint)
Parameters
Type Name Description
string thumbprint

The thumbprint to convert.

Returns
Type Description
string

Return the tenantId.

Examples

A1B2C3D4 ==> a1:b2:c3:d4

GetTenantIdFromCertificate(X509Certificate2)

Extract TenantId from the X509 certificate.

Declaration
public static string GetTenantIdFromCertificate(X509Certificate2 certificate)
Parameters
Type Name Description
X509Certificate2 certificate

certificate to read tenantId from.

Returns
Type Description
string

return the tenantId

In this article
Back to top