public class SWCDigest extends Object implements ISWCDigest
Modifier and Type | Field and Description |
---|---|
static String |
SHA_256
Supported hash-types
|
Constructor and Description |
---|
SWCDigest() |
Modifier and Type | Method and Description |
---|---|
String |
getType()
Get digest type.
|
String |
getValue()
Get digest value.
|
boolean |
isSigned()
If the digest is signed.
|
void |
setSigned(boolean signed) |
void |
setType(String type) |
void |
setValue(byte[] value)
Set the value from a digest in the form
of an array of bytes.
|
void |
setValue(String value) |
public static final String SHA_256
public String getType()
ISWCDigest
getType
in interface ISWCDigest
public boolean isSigned()
ISWCDigest
isSigned
in interface ISWCDigest
public String getValue()
ISWCDigest
getValue
in interface ISWCDigest
public void setSigned(boolean signed)
signed
- the signed to setpublic void setType(String type)
type
- the type to setpublic void setValue(String value)
value
- the value to setpublic void setValue(byte[] value)
value
- array of bytes. May not be null.NullPointerException
- if value is null.Copyright © 2016 The Apache Software Foundation. All rights reserved.