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