S - type of SignatureBinary.PR - type of PrivateKey.PU - type of PublicKey.public interface SignatureProcessorFactory<S extends SignatureBinary,PR extends PrivateKey,PU extends PublicKey> extends SignatureFactory<S>
factory to create instances of SignatureProcessor for
asymmetric cryptography.
Signatures only work with asymmetric security. For a given private key a
SignatureSigner can be created that allows to
sign any message. With the corresponding public key anyone can create a SignatureVerifier to
verify the SignatureBinary.SignatureProcessorFactory typically combines asymmetric
cryptography with
hashing.| Modifier and Type | Method and Description |
|---|---|
SignatureProcessorFactory<S,PR,PU> |
getSignatureFactoryWithoutHash() |
SignatureSigner<S> |
newSigner(PR privateKey) |
default SignatureSigner<S> |
newSignerUnsafe(PrivateKey privateKey) |
SignatureVerifier<S> |
newVerifier(PU publicKey) |
default SignatureVerifier<S> |
newVerifierUnsafe(PublicKey publicKey) |
createSignaturedefault SignatureSigner<S> newSignerUnsafe(PrivateKey privateKey)
privateKey - the PrivateKey to use for signing.SignatureSigner for signing.SignatureSigner<S> newSigner(PR privateKey)
privateKey - the PrivateKey to use for signing.SignatureSigner for signing.default SignatureVerifier<S> newVerifierUnsafe(PublicKey publicKey)
publicKey - the PublicKey to use for verifying.SignatureVerifier for verifying.SignatureVerifier<S> newVerifier(PU publicKey)
publicKey - the PublicKey to use for verifying.SignatureVerifier for verifying.SignatureProcessorFactory<S,PR,PU> getSignatureFactoryWithoutHash()
SignatureFactory that does not hash before signing so you can control
the hashing manually and only sign the resulting hash (e.g. to reuse the hash value for further
calculations).Copyright © 2001–2019 mmm-Team. All rights reserved.