public class BcTlsRSAVerifier extends java.lang.Object implements TlsVerifier
Modifier and Type | Field and Description |
---|---|
protected org.bouncycastle.crypto.params.RSAKeyParameters |
pubKeyRSA |
Constructor and Description |
---|
BcTlsRSAVerifier(org.bouncycastle.crypto.params.RSAKeyParameters pubKeyRSA) |
Modifier and Type | Method and Description |
---|---|
TlsStreamVerifier |
getStreamVerifier(DigitallySigned signature) |
boolean |
verifyRawSignature(DigitallySigned signedParams,
byte[] hash)
Return true if the passed in signature and hash represent a real signature.
|
public BcTlsRSAVerifier(org.bouncycastle.crypto.params.RSAKeyParameters pubKeyRSA)
public TlsStreamVerifier getStreamVerifier(DigitallySigned signature)
getStreamVerifier
in interface TlsVerifier
public boolean verifyRawSignature(DigitallySigned signedParams, byte[] hash)
TlsVerifier
verifyRawSignature
in interface TlsVerifier
signedParams
- the signature object containing the signature to be verified.hash
- the hash calculated for the signature.