Top Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class DSAOutputVerifier<T extends Parameters>

extends FipsOutputVerifier<T extends Parameters>
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.asn1.ASN1Encoding, .ASN1Integer, .ASN1Primitive, .ASN1Sequence, org.bouncycastle.crypto.InvalidSignatureException, .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

Constructor Summary

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

Method Summary

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

public T
getParameters()

Implements abstract org.bouncycastle.crypto.fips.FipsOutputVerifier.getParameters.

Implements org.bouncycastle.crypto.OutputVerifier.getParameters.

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

Implements abstract org.bouncycastle.crypto.fips.FipsOutputVerifier.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 abstract org.bouncycastle.crypto.fips.FipsOutputVerifier.isVerified.

Implements org.bouncycastle.crypto.OutputVerifier.isVerified.

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

Field Detail

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

Constructor Detail

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

Method Detail

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

Implements abstract org.bouncycastle.crypto.fips.FipsOutputVerifier.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.

Annotations
@Override
getVerifyingStreamback to summary
public UpdateOutputStream getVerifyingStream()

Implements abstract org.bouncycastle.crypto.fips.FipsOutputVerifier.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

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

Implements abstract org.bouncycastle.crypto.fips.FipsOutputVerifier.isVerified.

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.

Annotations
@Override