Top Description Constructors Methods
org.bouncycastle.openpgp.operator.jcajce

pack-priv Class OutputStreamFactory

extends Object
Class Inheritance
Imports
java.io.OutputStream, java.security.MessageDigest, .Signature, javax.crypto.Mac

Utility class for creating OutputStreams from different JCA/JCE operators.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static OutputStream

Returns:

an OutputStream.
createStream
(Signature
the signature to be updated as the stream is written to.
signature
)

Create an OutputStream that wraps a signature.

public static OutputStream

Returns:

an OutputStream.
createStream
(MessageDigest
the digest to be updated as the stream is written to.
digest
)

Create an OutputStream that wraps a digest.

public static OutputStream

Returns:

an OutputStream.
createStream
(Mac
the signature to be updated as the stream is written to.
mac
)

Create an OutputStream that wraps a mac.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

OutputStreamFactoryback to summary
pack-priv OutputStreamFactory()

Method Detail

createStreamback to summary
public static OutputStream createStream(Signature signature)

Create an OutputStream that wraps a signature.

Parameters
signature:Signature

the signature to be updated as the stream is written to.

Returns:OutputStream

an OutputStream.

createStreamback to summary
public static OutputStream createStream(MessageDigest digest)

Create an OutputStream that wraps a digest.

Parameters
digest:MessageDigest

the digest to be updated as the stream is written to.

Returns:OutputStream

an OutputStream.

createStreamback to summary
public static OutputStream createStream(Mac mac)

Create an OutputStream that wraps a mac.

Parameters
mac:Mac

the signature to be updated as the stream is written to.

Returns:OutputStream

an OutputStream.