|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cedarsoft.crypt.Hash
public class Hash
Represents a hash value
| Constructor Summary | |
|---|---|
Hash(Algorithm algorithm,
byte[] value)
Constructor for Hash. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
static Hash |
fromHex(Algorithm algorithm,
String valueAsHex)
Creates a hash from the given hex value |
Algorithm |
getAlgorithm()
Getter for the field algorithm. |
byte[] |
getValue()
Getter for the field value. |
String |
getValueAsHex()
getValueAsHex |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Hash(@Nonnull
Algorithm algorithm,
@Nonnull
byte[] value)
Constructor for Hash.
algorithm - a Algorithm object.value - an array of byte.| Method Detail |
|---|
@Nonnull public Algorithm getAlgorithm()
Getter for the field algorithm.
Algorithm object.@Nonnull public String getValueAsHex()
getValueAsHex
String object.@Nonnull public byte[] getValue()
Getter for the field value.
@Nonnull public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
@Nonnull
public static Hash fromHex(@Nonnull
Algorithm algorithm,
@Nonnull
String valueAsHex)
algorithm - the algorithmvalueAsHex - the hex value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||