Package org.bouncycastle.crypto
Interface SignatureWithMessageRecoveryOperatorFactory<T extends Parameters>
-
- Type Parameters:
T
- the parameter type for the signers and verifiers we produce.
- All Superinterfaces:
SignatureOperatorFactory<T>
- All Known Implementing Classes:
RSA.SignatureWithMessageRecoveryOperatorFactory
public interface SignatureWithMessageRecoveryOperatorFactory<T extends Parameters> extends SignatureOperatorFactory<T>
Interface describing an operator factory that produces signers and verifiers for algorithms that support message recovery.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputSignerWithMessageRecovery<T>
createSigner(AsymmetricPrivateKey key, T parameters)
Create a signer which will create signatures against data written to its output stream.OutputVerifierWithMessageRecovery<T>
createVerifier(AsymmetricPublicKey key, T parameters)
Create a verifier which will verify signatures against data written to its output stream.
-
-
-
Method Detail
-
createSigner
OutputSignerWithMessageRecovery<T> createSigner(AsymmetricPrivateKey key, T parameters)
Create a signer which will create signatures against data written to its output stream.- Specified by:
createSigner
in interfaceSignatureOperatorFactory<T extends Parameters>
- Parameters:
key
- the signing key to use.parameters
- the parameters to use to initialize the signer.- Returns:
- an OutputSigner.
-
createVerifier
OutputVerifierWithMessageRecovery<T> createVerifier(AsymmetricPublicKey key, T parameters)
Create a verifier which will verify signatures against data written to its output stream.- Specified by:
createVerifier
in interfaceSignatureOperatorFactory<T extends Parameters>
- Parameters:
key
- the verification key to use.parameters
- the parameters to use to initialize the verifier.- Returns:
- an OutputVerifier.
-
-