public class Hash extends Object
<media:hash algo="md5">dfdec888b72151965a34b4b59031290a</media:hash>
| Constructor and Description |
|---|
Hash() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgo()
Returns the algorithm used to create the hash.
|
String |
getValue()
Returns the hash value.
|
void |
setAlgo(String algo)
Initializes the algorithm used to create the hash.
|
void |
setValue(String value)
Initializes the hash value.
|
public void setValue(String value)
value - a hash value. Shall not be null.NullPointerException - if value is null.getValue()public String getValue()
null if not yet initialized.setValue(java.lang.String)public void setAlgo(String algo)
algo - a hash algorithm. May be null.getAlgo()public String getAlgo()
null.setAlgo(java.lang.String)Copyright © 2008–2017. All rights reserved.