Package org.bouncycastle.jcajce.io
Class OutputStreamFactory
java.lang.Object
org.bouncycastle.jcajce.io.OutputStreamFactory
Utility class for creating OutputStreams from different JCA/JCE operators.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OutputStream
createStream
(MessageDigest digest) Create an OutputStream that wraps a digest.static OutputStream
createStream
(Signature signature) Create an OutputStream that wraps a signature.static OutputStream
createStream
(Mac mac) Create an OutputStream that wraps a mac.
-
Constructor Details
-
OutputStreamFactory
public OutputStreamFactory()
-
-
Method Details
-
createStream
Create an OutputStream that wraps a signature.- Parameters:
signature
- the signature to be updated as the stream is written to.- Returns:
- an OutputStream.
-
createStream
Create an OutputStream that wraps a digest.- Parameters:
digest
- the digest to be updated as the stream is written to.- Returns:
- an OutputStream.
-
createStream
Create an OutputStream that wraps a mac.- Parameters:
mac
- the signature to be updated as the stream is written to.- Returns:
- an OutputStream.
-