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()
ISWCDigestgetType in interface ISWCDigestpublic boolean isSigned()
ISWCDigestisSigned in interface ISWCDigestpublic String getValue()
ISWCDigestgetValue in interface ISWCDigestpublic 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.