Class BcTlsRSAPSSVerifier
- java.lang.Object
-
- org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
-
- org.bouncycastle.tls.crypto.impl.bc.BcTlsRSAPSSVerifier
-
- All Implemented Interfaces:
TlsVerifier
public class BcTlsRSAPSSVerifier extends BcTlsVerifier
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
Constructors Constructor Description BcTlsRSAPSSVerifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters publicKey, short signatureAlgorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TlsStreamVerifier
getStreamVerifier(DigitallySigned signature)
boolean
verifyRawSignature(DigitallySigned signature, byte[] hash)
Return true if the passed in signature and hash represent a real signature.
-
-
-
Constructor Detail
-
BcTlsRSAPSSVerifier
public BcTlsRSAPSSVerifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters publicKey, short signatureAlgorithm)
-
-
Method Detail
-
verifyRawSignature
public boolean verifyRawSignature(DigitallySigned signature, byte[] hash) throws java.io.IOException
Description copied from interface:TlsVerifier
Return true if the passed in signature and hash represent a real signature.- 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)
- Specified by:
getStreamVerifier
in interfaceTlsVerifier
- Overrides:
getStreamVerifier
in classBcTlsVerifier
-
-