T
- the parameter type for the signers and verifiers we produce.public interface SignatureOperatorFactory<T extends Parameters>
Modifier and Type | Method and Description |
---|---|
OutputSigner<T> |
createSigner(AsymmetricPrivateKey key,
T parameters)
Create a signer which will create signatures against data written to
its output stream.
|
OutputValidator<T> |
createValidator(AsymmetricPublicKey key,
T parameters,
byte[] signature)
Create a validator which will verify against data written to
its output stream against a signature.
|
OutputVerifier<T> |
createVerifier(AsymmetricPublicKey key,
T parameters)
Create a verifier which will verify signatures against data written to
its output stream.
|
OutputSigner<T> createSigner(AsymmetricPrivateKey key, T parameters)
key
- the signing key to use.parameters
- the parameters to use to initialize the signer.OutputVerifier<T> createVerifier(AsymmetricPublicKey key, T parameters)
key
- the verification key to use.parameters
- the parameters to use to initialize the verifier.OutputValidator<T> createValidator(AsymmetricPublicKey key, T parameters, byte[] signature) throws InvalidSignatureException
key
- the verification key to use.parameters
- the parameters to use to initialize the verifier.signature
- the signature that the data is to be validated against.InvalidSignatureException