Class JcaTlsEdDSAVerifier
- java.lang.Object
-
- org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsEdDSAVerifier
-
- All Implemented Interfaces:
TlsVerifier
- Direct Known Subclasses:
JcaTlsEd25519Verifier,JcaTlsEd448Verifier
public class JcaTlsEdDSAVerifier extends java.lang.Object implements TlsVerifier
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringalgorithmNameprotected shortalgorithmTypeprotected JcaTlsCryptocryptoprotected java.security.PublicKeypublicKey
-
Constructor Summary
Constructors Constructor Description JcaTlsEdDSAVerifier(JcaTlsCrypto crypto, java.security.PublicKey publicKey, short algorithmType, java.lang.String algorithmName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TlsStreamVerifiergetStreamVerifier(DigitallySigned signature)booleanverifyRawSignature(DigitallySigned signature, byte[] hash)Return true if the passed in signature and hash represent a real signature.
-
-
-
Field Detail
-
crypto
protected final JcaTlsCrypto crypto
-
publicKey
protected final java.security.PublicKey publicKey
-
algorithmType
protected final short algorithmType
-
algorithmName
protected final java.lang.String algorithmName
-
-
Constructor Detail
-
JcaTlsEdDSAVerifier
public JcaTlsEdDSAVerifier(JcaTlsCrypto crypto, java.security.PublicKey publicKey, short algorithmType, java.lang.String algorithmName)
-
-
Method Detail
-
verifyRawSignature
public boolean verifyRawSignature(DigitallySigned signature, byte[] hash) throws java.io.IOException
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:
java.io.IOException- in case of an exception verifying signature.
-
getStreamVerifier
public TlsStreamVerifier getStreamVerifier(DigitallySigned signature) throws java.io.IOException
- Specified by:
getStreamVerifierin interfaceTlsVerifier- Throws:
java.io.IOException
-
-