Top Description Methods
org.bouncycastle.tls.crypto

public Interface TlsVerifier

Known Direct Implementers
org.bouncycastle.tls.crypto.impl.LegacyTls13Verifier, org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsDSSVerifier, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsRSAPSSVerifier, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsRSAVerifier
Imports
java.io.IOException, org.bouncycastle.tls.DigitallySigned

Base interface for a TLS verifier that works with signatures and either raw message digests, or entire messages.

Method Summary

Modifier and TypeMethod and Description
public TlsStreamVerifier
public boolean

Returns:

true if signature verifies, false otherwise.
verifyRawSignature
(DigitallySigned
the signature object containing the signature to be verified.
digitallySigned
,
byte[]
the hash calculated for the signature.
hash
)

Return true if the passed in signature and hash represent a real signature.

Method Detail

getStreamVerifierback to summary
public TlsStreamVerifier getStreamVerifier(DigitallySigned digitallySigned) throws IOException
verifyRawSignatureback to summary
public boolean verifyRawSignature(DigitallySigned digitallySigned, byte[] hash) throws IOException

Return true if the passed in signature and hash represent a real signature.

Parameters
digitallySigned:DigitallySigned

the signature object containing the signature to be verified.

hash:byte[]

the hash calculated for the signature.

Returns:boolean

true if signature verifies, false otherwise.

Exceptions
IOException:
in case of an exception verifying signature.