Pular para o conteúdo principal

PKCertificateWithKey

Namespace: Lacuna.Pki
Assembly: Lacuna.Pki
Class

public class PKCertificateWithKey

Hierarquia: objectPKCertificateWithKey

Construtores

PKCertificateWithKey(PKCertificate, IPrivateKey)

public PKCertificateWithKey(PKCertificate certificate, IPrivateKey privateKey)

Parâmetros

NomeTipoDescrição
certificatePKCertificate
privateKeyIPrivateKey

Propriedades

Certificate

public PKCertificate Certificate { get; }

Retorno

PKCertificate


PrivateKey

public IPrivateKey PrivateKey { get; }

Retorno

IPrivateKey


Métodos

GetEncryptionCsp()

public IEncryptionCsp GetEncryptionCsp()

Retorno

IEncryptionCsp


GetSignatureCsp(DigestAlgorithm)

public ISignatureCsp GetSignatureCsp(DigestAlgorithm digestAlgorithm)

Parâmetros

NomeTipoDescrição
digestAlgorithmDigestAlgorithm

Retorno

ISignatureCsp


GetSignatureCsp(SignatureAlgorithm)

public ISignatureCsp GetSignatureCsp(SignatureAlgorithm signatureAlgorithm)

Parâmetros

NomeTipoDescrição
signatureAlgorithmSignatureAlgorithm

Retorno

ISignatureCsp


SignData(DigestAlgorithm, byte[])

public byte[] SignData(DigestAlgorithm digestAlgorithm, byte[] buffer)

Parâmetros

NomeTipoDescrição
digestAlgorithmDigestAlgorithm
bufferbyte[]

Retorno

byte[]


SignData(SignatureAlgorithm, byte[])

public byte[] SignData(SignatureAlgorithm signatureAlgorithm, byte[] buffer)

Parâmetros

NomeTipoDescrição
signatureAlgorithmSignatureAlgorithm
bufferbyte[]

Retorno

byte[]


SignHash(DigestAlgorithm, byte[])

public byte[] SignHash(DigestAlgorithm digestAlgorithm, byte[] hash)

Parâmetros

NomeTipoDescrição
digestAlgorithmDigestAlgorithm
hashbyte[]

Retorno

byte[]


SignHash(SignatureAlgorithm, byte[])

public byte[] SignHash(SignatureAlgorithm signatureAlgorithm, byte[] hash)

Parâmetros

NomeTipoDescrição
signatureAlgorithmSignatureAlgorithm
hashbyte[]

Retorno

byte[]


VerifyData(DigestAlgorithm, byte[], byte[])

public bool VerifyData(DigestAlgorithm digestAlgorithm, byte[] dataSigned, byte[] signature)

Parâmetros

NomeTipoDescrição
digestAlgorithmDigestAlgorithm
dataSignedbyte[]
signaturebyte[]

Retorno

bool


VerifyData(SignatureAlgorithm, byte[], byte[])

public bool VerifyData(SignatureAlgorithm signatureAlgorithm, byte[] dataSigned, byte[] signature)

Parâmetros

NomeTipoDescrição
signatureAlgorithmSignatureAlgorithm
dataSignedbyte[]
signaturebyte[]

Retorno

bool


VerifyHash(DigestAlgorithm, byte[], byte[])

public bool VerifyHash(DigestAlgorithm digestAlgorithm, byte[] hashSigned, byte[] signature)

Parâmetros

NomeTipoDescrição
digestAlgorithmDigestAlgorithm
hashSignedbyte[]
signaturebyte[]

Retorno

bool


VerifyHash(SignatureAlgorithm, byte[], byte[])

public bool VerifyHash(SignatureAlgorithm signatureAlgorithm, byte[] hashSigned, byte[] signature)

Parâmetros

NomeTipoDescrição
signatureAlgorithmSignatureAlgorithm
hashSignedbyte[]
signaturebyte[]

Retorno

bool


Membros herdados

ToString(), Equals(object), Equals(object, object), ReferenceEquals(object, object), GetHashCode(), GetType(), MemberwiseClone()