Class JcaTlsRSAVerifier
java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsRSAVerifier
- All Implemented Interfaces:
TlsVerifier
Operator supporting the verification of RSASSA-PKCS1-v1_5 signatures.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SignaturegetStreamVerifier(DigitallySigned digitallySigned) protected booleanbooleanverifyRawSignature(DigitallySigned digitallySigned, byte[] hash) Return true if the passed in signature and hash represent a real signature.
-
Constructor Details
-
JcaTlsRSAVerifier
-
-
Method Details
-
getStreamVerifier
- Specified by:
getStreamVerifierin interfaceTlsVerifier- Throws:
IOException
-
verifyRawSignature
Description copied from interface:TlsVerifierReturn true if the passed in signature and hash represent a real signature.- Specified by:
verifyRawSignaturein interfaceTlsVerifier- Parameters:
digitallySigned- 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.
-
getRawVerifier
- Throws:
GeneralSecurityException
-
isSunMSCAPIRawVerifier
- Throws:
IOException
-