public TokenSigner(SigningKey key, SignatureHashAlgorithm hashAlgorithm) { this.m_key = key; this.m_hashAlgorithm = hashAlgorithm; }
internal SigningKey(SafeCryptKeyHandle keyHandle, X509Certificate2 certificate) { this.KeyHandle = keyHandle; this.Certificate = certificate; this.CertificateThumbprint = SigningKey.StringToByteArray(this.Certificate.Thumbprint); }
public TokenSigner(X509Certificate2 certificate, SignatureHashAlgorithm hashAlgorithm) : this(SigningKey.CreateFromCertificate(certificate), hashAlgorithm) { }