Top Description Constructors Methods
org.bouncycastle.crypto.fips

public abstract Class FipsOutputSignerUsingSecureRandom<T extends Parameters>

extends FipsOutputSigner<T extends Parameters>
implements OutputSignerUsingSecureRandom<T extends Parameters>
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.OutputSignerUsingSecureRandom, org.bouncycastle.crypto.OperatorUsingSecureRandom, org.bouncycastle.crypto.OutputSigner
Known Direct Subclasses
org.bouncycastle.crypto.fips.FipsRSA.SignatureOperatorFactory.RSASigner, org.bouncycastle.crypto.fips.DSAOutputSigner
Type Parameters
<T>
The parameters class for this signer.
Imports
java.security.SecureRandom, org.bouncycastle.crypto.OutputSignerUsingSecureRandom, .Parameters, .PlainInputProcessingException, .UpdateOutputStream

Base class for a FIPS signature generator that makes use of a SecureRandom as part of the signing process.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public abstract T
getParameters()

Redeclares org.bouncycastle.crypto.OutputSigner.getParameters.

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

Return the parameters for this output signer.
public abstract byte[]
getSignature()

Redeclares org.bouncycastle.crypto.OutputSigner.getSignature.

Implements abstract org.bouncycastle.crypto.fips.FipsOutputSigner.getSignature.

Return the signature calculated on what has been written to the calculator's output stream.
public abstract UpdateOutputStream
getSigningStream()

Redeclares org.bouncycastle.crypto.OutputSigner.getSigningStream.

Implements abstract org.bouncycastle.crypto.fips.FipsOutputSigner.getSigningStream.

Returns a stream that will accept data for the purpose of calculating a signature.
public abstract FipsOutputSignerUsingSecureRandom<T>
withSecureRandom(SecureRandom
the SecureRandom to use.
random
)

Redeclares org.bouncycastle.crypto.OutputSignerUsingSecureRandom.withSecureRandom.

Return a variant of this signer using the passed in random as its source of randomness.
Inherited from org.bouncycastle.crypto.fips.FipsOutputSigner:
getSignature

Constructor Detail

FipsOutputSignerUsingSecureRandomback to summary
pack-priv FipsOutputSignerUsingSecureRandom()

Method Detail

getParametersback to summary
public abstract T getParameters()

Redeclares org.bouncycastle.crypto.OutputSigner.getParameters.

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

Doc from org.bouncycastle.crypto.OutputSigner.getParameters.

Return the parameters for this output signer.

Returns:T

the signer's parameters.

getSignatureback to summary
public abstract byte[] getSignature() throws PlainInputProcessingException

Redeclares org.bouncycastle.crypto.OutputSigner.getSignature.

Implements abstract org.bouncycastle.crypto.fips.FipsOutputSigner.getSignature.

Doc from org.bouncycastle.crypto.OutputSigner.getSignature.

Return the signature calculated on what has been written to the calculator's output stream.

Returns:byte[]

a signature.

Exceptions
PlainInputProcessingException:
if the input provided cannot be processed.
getSigningStreamback to summary
public abstract UpdateOutputStream getSigningStream()

Redeclares org.bouncycastle.crypto.OutputSigner.getSigningStream.

Implements abstract org.bouncycastle.crypto.fips.FipsOutputSigner.getSigningStream.

Doc from org.bouncycastle.crypto.OutputSigner.getSigningStream.

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

Returns:UpdateOutputStream

an UpdateOutputStream

withSecureRandomback to summary
public abstract FipsOutputSignerUsingSecureRandom<T> withSecureRandom(SecureRandom random)

Redeclares org.bouncycastle.crypto.OutputSignerUsingSecureRandom.withSecureRandom.

Doc from org.bouncycastle.crypto.OutputSignerUsingSecureRandom.withSecureRandom.

Return a variant of this signer using the passed in random as its source of randomness.

Parameters
random:SecureRandom

the SecureRandom to use.

Returns:FipsOutputSignerUsingSecureRandom<T>

a signer which will use random where random data is required.