Constructor and Description |
---|
JavaSecurityDigester(String algorithm,
int step) |
Modifier and Type | Method and Description |
---|---|
Digester |
createCopy()
Clone the digester so any thread local variables will be cleaned up when the clone is GC'd
|
byte[] |
digest(DataRange data)
Calculates a digest of a data range.
|
byte[] |
digest(Range<?> data)
Calculates Digest of a binary range.
|
byte[] |
digestForced(DataRange data)
Calculates a digest of a data range.
|
String |
getAlgorithm() |
int |
length()
Return the length of this digest
|
public JavaSecurityDigester(String algorithm, int step)
public String getAlgorithm()
public byte[] digest(DataRange data)
Digester
Important: If some of the data can't be read immediately (e.g. due to idiosyncrasies of underlying storage), then this method may return incorrect result.
public byte[] digestForced(DataRange data)
Digester
IllegalStateException
if any StorageUnit
does
not return enough data.digestForced
in interface Digester
public byte[] digest(Range<?> data)
Digester
public int length()
Digester
public Digester createCopy()
Digester
createCopy
in interface Digester
Copyright © 2016–2021. All rights reserved.