Class Digest
- java.lang.Object
-
- com.syntifi.casper.sdk.model.common.Digest
-
- All Implemented Interfaces:
EncodableValue
public class Digest extends java.lang.Object implements EncodableValue
Digest for Hex String- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Digest.DigestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Digest.DigestBuilder
builder()
static Digest
digestFromBytes(byte[] bytes)
void
encode(CLValueEncoder clve, boolean encodeType)
Implements Digest encoderbyte[]
getDigest()
void
setDigest(byte[] hash)
-
-
-
Method Detail
-
getDigest
public byte[] getDigest()
-
setDigest
public void setDigest(byte[] hash)
-
digestFromBytes
public static Digest digestFromBytes(byte[] bytes)
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements Digest encoder- Specified by:
encode
in interfaceEncodableValue
- Parameters:
clve
- the encoder to be usedencodeType
- append encoded type?- Throws:
java.io.IOException
- thrown if an IO error occursCLValueEncodeException
- thrown if failed to encode a cl valueDynamicInstanceException
- thrown if it could not instantiate a typeNoSuchTypeException
- thrown if type not found
-
builder
public static Digest.DigestBuilder builder()
-
-