Class JcaTlsEdDSAVerifier
java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsEdDSAVerifier
- All Implemented Interfaces:
TlsVerifier
- Direct Known Subclasses:
JcaTlsEd25519Verifier,JcaTlsEd448Verifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final shortprotected final JcaTlsCryptoprotected final PublicKey -
Constructor Summary
ConstructorsConstructorDescriptionJcaTlsEdDSAVerifier(JcaTlsCrypto crypto, PublicKey publicKey, short algorithmType, String algorithmName) -
Method Summary
Modifier and TypeMethodDescriptiongetStreamVerifier(DigitallySigned signature) booleanverifyRawSignature(DigitallySigned signature, byte[] hash) Return true if the passed in signature and hash represent a real signature.
-
Field Details
-
crypto
-
publicKey
-
algorithmType
protected final short algorithmType -
algorithmName
-
-
Constructor Details
-
JcaTlsEdDSAVerifier
public JcaTlsEdDSAVerifier(JcaTlsCrypto crypto, PublicKey publicKey, short algorithmType, String algorithmName)
-
-
Method Details
-
verifyRawSignature
Description copied from interface:TlsVerifierReturn true if the passed in signature and hash represent a real signature.- Specified by:
verifyRawSignaturein interfaceTlsVerifier- Parameters:
signature- the signature object containing the signature to be verified.hash- the hash calculated for the signature.- Returns:
- true if signature verifies, false otherwise.
- Throws:
IOException- in case of an exception verifying signature.
-
getStreamVerifier
- Specified by:
getStreamVerifierin interfaceTlsVerifier- Throws:
IOException
-