Package org.xipki.security.pkcs11
Class DigestOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.xipki.security.pkcs11.DigestOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class DigestOutputStream extends OutputStream
OutputStreamwith aDigestas the backend.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description DigestOutputStream(org.bouncycastle.crypto.Digest digest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]digest()voidreset()voidwrite(byte[] bytes)voidwrite(byte[] bytes, int off, int len)voidwrite(int oneByte)-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
-
-
-
Method Detail
-
reset
public void reset()
-
write
public void write(byte[] bytes, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] bytes) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(int oneByte) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
digest
public byte[] digest()
-
-