TokenSigner TokenSigner TokenSigner Class

Definition

TokenSigner contains a private key to sign the Identity Transfer tokens, as well as the hash algorithm to use for signing. It encapsulates all there is to know in order to sign the token.

public sealed class TokenSigner
type TokenSigner = class
Public NotInheritable Class TokenSigner
Inheritance
TokenSignerTokenSignerTokenSigner

Constructors

TokenSigner(SigningKey, SignatureHashAlgorithm) TokenSigner(SigningKey, SignatureHashAlgorithm) TokenSigner(SigningKey, SignatureHashAlgorithm)

Initializes a new instance of the TokenSigner class with a specified key and signature algorithm information.

TokenSigner(X509Certificate2, SignatureHashAlgorithm) TokenSigner(X509Certificate2, SignatureHashAlgorithm) TokenSigner(X509Certificate2, SignatureHashAlgorithm)

Initializes a new instance of the TokenSigner class with a specified certificate and signature algorithm information.

Properties

CertificateThumbprint CertificateThumbprint CertificateThumbprint

Signing certificate thumbprint as byte array

DigestMethod DigestMethod DigestMethod

Hash algorithm name used for signing

Methods

Sign(Byte[]) Sign(Byte[]) Sign(Byte[])

Signs the provided blob and returns a signature.

Applies to