Class BcTlsRSAVerifier
- java.lang.Object
-
- org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
-
- org.bouncycastle.tls.crypto.impl.bc.BcTlsRSAVerifier
-
- All Implemented Interfaces:
TlsVerifier
public class BcTlsRSAVerifier extends BcTlsVerifier
Operator supporting the verification of RSASSA-PKCS1-v1_5 signatures using the BC light-weight API.
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
crypto, publicKey
-
-
Constructor Summary
Constructors Constructor Description BcTlsRSAVerifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters publicKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
verifyRawSignature(DigitallySigned signedParams, 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 Detail
-
BcTlsRSAVerifier
public BcTlsRSAVerifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters publicKey)
-
-
Method Detail
-
verifyRawSignature
public boolean verifyRawSignature(DigitallySigned signedParams, byte[] hash)
Description copied from interface:TlsVerifier
Return true if the passed in signature and hash represent a real signature.- Parameters:
signedParams
- the signature object containing the signature to be verified.hash
- the hash calculated for the signature.- Returns:
- true if signature verifies, false otherwise.
-
-