Top Description Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.jcajce

public abstract Class JcaTlsDSSVerifier

extends Object
implements TlsVerifier
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsVerifier
Known Direct Subclasses
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsECDSAVerifier, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsDSAVerifier
Imports
java.io.IOException, java.security.GeneralSecurityException, .PublicKey, .Signature, org.bouncycastle.tls.DigitallySigned, .SignatureAndHashAlgorithm, org.bouncycastle.tls.crypto.TlsStreamVerifier, .TlsVerifier

JCA base class for the verifiers implementing the two DSA style algorithms from FIPS PUB 186-4: DSA and ECDSA.

Field Summary

Modifier and TypeField and Description
protected final String
protected final short
protected final JcaTlsCrypto
protected final PublicKey

Constructor Summary

AccessConstructor and Description
protected
JcaTlsDSSVerifier(JcaTlsCrypto crypto, PublicKey publicKey, short algorithmType, String algorithmName)

Method Summary

Modifier and TypeMethod and Description
public TlsStreamVerifier
public boolean
verifyRawSignature(DigitallySigned
the signature object containing the signature to be verified.
digitallySigned
,
byte[]
the hash calculated for the signature.
hash
)

Implements org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmNameback to summary
protected final String algorithmName
algorithmTypeback to summary
protected final short algorithmType
cryptoback to summary
protected final JcaTlsCrypto crypto
publicKeyback to summary
protected final PublicKey publicKey

Constructor Detail

JcaTlsDSSVerifierback to summary
protected JcaTlsDSSVerifier(JcaTlsCrypto crypto, PublicKey publicKey, short algorithmType, String algorithmName)

Method Detail

getStreamVerifierback to summary
public TlsStreamVerifier getStreamVerifier(DigitallySigned digitallySigned) throws IOException

Implements org.bouncycastle.tls.crypto.TlsVerifier.getStreamVerifier.

verifyRawSignatureback to summary
public boolean verifyRawSignature(DigitallySigned digitallySigned, byte[] hash)

Implements org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

Doc from org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

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.