Class BcTlsRSAPSSVerifier
java.lang.Object
org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
org.bouncycastle.tls.crypto.impl.bc.BcTlsRSAPSSVerifier
- All Implemented Interfaces:
TlsVerifier
Operator supporting the verification of RSASSA-PSS signatures using the BC light-weight API.
-
Field Summary
Fields inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
crypto, publicKey
-
Constructor Summary
ConstructorDescriptionBcTlsRSAPSSVerifier
(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters publicKey, int signatureScheme) -
Method Summary
Modifier and TypeMethodDescriptionboolean
verifyRawSignature
(DigitallySigned digitallySigned, byte[] hash) Return true if the passed in signature and hash represent a real signature.Methods inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
getStreamVerifier
-
Constructor Details
-
BcTlsRSAPSSVerifier
public BcTlsRSAPSSVerifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters publicKey, int signatureScheme)
-
-
Method Details
-
verifyRawSignature
Description copied from interface:TlsVerifier
Return true if the passed in signature and hash represent a real signature.- 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.
-