iText 8.0.5 API
|
Implementation of the IExternalSignature interface that can be used when you have a iText.Commons.Bouncycastle.Crypto.IPrivateKey object. More...
Public Member Functions |
|
PrivateKeySignature (IPrivateKey pk, String hashAlgorithm) | |
Creates a PrivateKeySignature instance. More... |
|
PrivateKeySignature (IPrivateKey pk, String hashAlgorithm, String signatureAlgorithm, IApplicableSignatureParams @params) | |
Creates a PrivateKeySignature instance. More... |
|
virtual String | GetDigestAlgorithmName () |
Returns the digest algorithm. More... |
|
virtual String | GetSignatureAlgorithmName () |
Returns the signature algorithm used for signing, disregarding the digest function. More... |
|
virtual ISignatureMechanismParams | GetSignatureMechanismParameters () |
Return the algorithm parameters that need to be encoded together with the signature mechanism identifier. More... |
|
virtual byte[] | Sign (byte[] message) |
Signs the given message using the encryption algorithm in combination with the hash algorithm. More... |
|
Implementation of the IExternalSignature interface that can be used when you have a iText.Commons.Bouncycastle.Crypto.IPrivateKey object.
|
inline |
Creates a PrivateKeySignature instance.
pk | A iText.Commons.Bouncycastle.Crypto.IPrivateKey object. |
hashAlgorithm | A hash algorithm (e.g. "SHA-1", "SHA-256",...). |
provider | A security provider (e.g. "BC"). |
|
inline |
Creates a PrivateKeySignature instance.
pk | A iText.Commons.Bouncycastle.Crypto.IPrivateKey object. |
hashAlgorithm | A hash algorithm (e.g. "SHA-1", "SHA-256",...). |
signatureAlgorithm | A signiture algorithm (e.g. "RSASSA-PSS", "id-signedData", "sha256WithRSAEncryption", ...) |
provider | A security provider (e.g. "BC"). |
params | Parameters for using RSASSA-PSS or other algorithms requiring them. |
|
inlinevirtual |
Returns the digest algorithm.
Implements iText.Signatures.IExternalSignature.
|
inlinevirtual |
Returns the signature algorithm used for signing, disregarding the digest function.
Implements iText.Signatures.IExternalSignature.
|
inlinevirtual |
Return the algorithm parameters that need to be encoded together with the signature mechanism identifier.
Implements iText.Signatures.IExternalSignature.
|
inlinevirtual |
Signs the given message using the encryption algorithm in combination with the hash algorithm.
Implements iText.Signatures.IExternalSignature.