PKCertificateWithKey
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki
Class
public class PKCertificateWithKey
Hierarquia: object → PKCertificateWithKey
Construtores
PKCertificateWithKey(PKCertificate, IPrivateKey)
public PKCertificateWithKey(PKCertificate certificate, IPrivateKey privateKey)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
certificate | PKCertificate | |
privateKey | IPrivateKey |
Propriedades
Certificate
public PKCertificate Certificate { get; }
Retorno
PrivateKey
public IPrivateKey PrivateKey { get; }
Retorno
Métodos
GetEncryptionCsp()
public IEncryptionCsp GetEncryptionCsp()
Retorno
GetSignatureCsp(DigestAlgorithm)
public ISignatureCsp GetSignatureCsp(DigestAlgorithm digestAlgorithm)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
digestAlgorithm | DigestAlgorithm |
Retorno
GetSignatureCsp(SignatureAlgorithm)
public ISignatureCsp GetSignatureCsp(SignatureAlgorithm signatureAlgorithm)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
signatureAlgorithm | SignatureAlgorithm |
Retorno
SignData(DigestAlgorithm, byte[])
public byte[] SignData(DigestAlgorithm digestAlgorithm, byte[] buffer)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
digestAlgorithm | DigestAlgorithm | |
buffer | byte[] |
Retorno
SignData(SignatureAlgorithm, byte[])
public byte[] SignData(SignatureAlgorithm signatureAlgorithm, byte[] buffer)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
signatureAlgorithm | SignatureAlgorithm | |
buffer | byte[] |
Retorno
SignHash(DigestAlgorithm, byte[])
public byte[] SignHash(DigestAlgorithm digestAlgorithm, byte[] hash)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
digestAlgorithm | DigestAlgorithm | |
hash | byte[] |
Retorno
SignHash(SignatureAlgorithm, byte[])
public byte[] SignHash(SignatureAlgorithm signatureAlgorithm, byte[] hash)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
signatureAlgorithm | SignatureAlgorithm | |
hash | byte[] |
Retorno
VerifyData(DigestAlgorithm, byte[], byte[])
public bool VerifyData(DigestAlgorithm digestAlgorithm, byte[] dataSigned, byte[] signature)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
digestAlgorithm | DigestAlgorithm | |
dataSigned | byte[] | |
signature | byte[] |
Retorno
VerifyData(SignatureAlgorithm, byte[], byte[])
public bool VerifyData(SignatureAlgorithm signatureAlgorithm, byte[] dataSigned, byte[] signature)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
signatureAlgorithm | SignatureAlgorithm | |
dataSigned | byte[] | |
signature | byte[] |
Retorno
VerifyHash(DigestAlgorithm, byte[], byte[])
public bool VerifyHash(DigestAlgorithm digestAlgorithm, byte[] hashSigned, byte[] signature)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
digestAlgorithm | DigestAlgorithm | |
hashSigned | byte[] | |
signature | byte[] |
Retorno
VerifyHash(SignatureAlgorithm, byte[], byte[])
public bool VerifyHash(SignatureAlgorithm signatureAlgorithm, byte[] hashSigned, byte[] signature)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
signatureAlgorithm | SignatureAlgorithm | |
hashSigned | byte[] | |
signature | byte[] |
Retorno
Membros herdados
ToString(), Equals(object), Equals(object, object), ReferenceEquals(object, object), GetHashCode(), GetType(), MemberwiseClone()