Top Fields Constructors Methods
org.bouncycastle.crypto.general

pack-priv Class DSAOutputVerifier<T extends Parameters>

extends Object
implements OutputVerifier<T extends Parameters>
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.OutputVerifier
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.asn1.ASN1Encoding, .ASN1Integer, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, org.bouncycastle.crypto.InvalidSignatureException, .OutputVerifier, .Parameters, org.bouncycastle.crypto.internal.DSA, .Digest, org.bouncycastle.crypto.internal.io.DigestOutputStream, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private final Digest
private final DSA
private final T
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
DSAOutputVerifier(DSA dsa, Digest digest, T parameter)

pack-priv
DSAOutputVerifier(DSA dsa, Digest digest, T parameter, boolean reverse)

Method Summary

Modifier and TypeMethod and Description
public BigInteger[]
decode(byte[] encoding)

public T
getParameters()

Implements org.bouncycastle.crypto.OutputVerifier.getParameters.

Return the parameters for this output verifier.
public UpdateOutputStream
getVerifyingStream()

Implements org.bouncycastle.crypto.OutputVerifier.getVerifyingStream.

Returns a stream that will accept data for the purpose of verifying a previously calculated signature.
public boolean
isVerified(byte[]
the signature to be confirmed.
signature
)

Implements org.bouncycastle.crypto.OutputVerifier.isVerified.

Return true if the data written to the verifying stream matches the data the signature was calculated against.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digestback to summary
private final Digest digest
dsaback to summary
private final DSA dsa
parameterback to summary
private final T parameter
reverseback to summary
private final boolean reverse

Constructor Detail

DSAOutputVerifierback to summary
pack-priv DSAOutputVerifier(DSA dsa, Digest digest, T parameter)
DSAOutputVerifierback to summary
pack-priv DSAOutputVerifier(DSA dsa, Digest digest, T parameter, boolean reverse)

Method Detail

decodeback to summary
public BigInteger[] decode(byte[] encoding) throws IOException
getParametersback to summary
public T getParameters()

Implements org.bouncycastle.crypto.OutputVerifier.getParameters.

Doc from org.bouncycastle.crypto.OutputVerifier.getParameters.

Return the parameters for this output verifier.

Returns:T

the verifier's parameters.

getVerifyingStreamback to summary
public UpdateOutputStream getVerifyingStream()

Implements org.bouncycastle.crypto.OutputVerifier.getVerifyingStream.

Doc from org.bouncycastle.crypto.OutputVerifier.getVerifyingStream.

Returns a stream that will accept data for the purpose of verifying a previously calculated signature. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.

Returns:UpdateOutputStream

an UpdateOutputStream

isVerifiedback to summary
public boolean isVerified(byte[] signature) throws InvalidSignatureException

Implements org.bouncycastle.crypto.OutputVerifier.isVerified.

Doc from org.bouncycastle.crypto.OutputVerifier.isVerified.

Return true if the data written to the verifying stream matches the data the signature was calculated against.

Parameters
signature:byte[]

the signature to be confirmed.

Returns:boolean

true if the data verifies against the signature, false otherwise.