Package org.bouncycastle.tls.crypto
Interface TlsVerifier
-
- All Known Implementing Classes:
BcTlsDSAVerifier,BcTlsDSSVerifier,BcTlsECDSAVerifier,BcTlsRSAPSSVerifier,BcTlsRSAVerifier,BcTlsVerifier,JcaTlsDSAVerifier,JcaTlsDSSVerifier,JcaTlsECDSAVerifier,JcaTlsRSAPSSVerifier,JcaTlsRSAVerifier,LegacyTls13Verifier
public interface TlsVerifierBase interface for a TLS verifier that works with signatures and either raw message digests, or entire messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TlsStreamVerifiergetStreamVerifier(DigitallySigned digitallySigned)booleanverifyRawSignature(DigitallySigned digitallySigned, byte[] hash)Return true if the passed in signature and hash represent a real signature.
-
-
-
Method Detail
-
getStreamVerifier
TlsStreamVerifier getStreamVerifier(DigitallySigned digitallySigned) throws java.io.IOException
- Throws:
java.io.IOException
-
verifyRawSignature
boolean verifyRawSignature(DigitallySigned digitallySigned, byte[] hash) throws java.io.IOException
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:
java.io.IOException- in case of an exception verifying signature.
-
-