Package aQute.libg.cryptography
Class Digester<T extends Digest>
java.lang.Object
java.io.OutputStream
aQute.libg.cryptography.Digester<T>
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
protected MessageDigest
(package private) OutputStream[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract T
digest()
abstract T
digest
(byte[] bytes) from
(byte[] f) from
(InputStream in) abstract String
int
void
setOutputs
(OutputStream... out) void
write
(byte[] buffer, int offset, int length) void
write
(int b) Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
Field Details
-
md
-
out
OutputStream[] out -
length
int length
-
-
Constructor Details
-
Digester
-
-
Method Details
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
getMessageDigest
- Throws:
Exception
-
from
- Throws:
Exception
-
setOutputs
-
digest
- Throws:
Exception
-
digest
- Throws:
Exception
-
getAlgorithm
-
from
- Throws:
Exception
-
from
- Throws:
Exception
-
getLength
public int getLength()
-