|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.Digest
public class Digest
Describes a digest value and the digest algorithm used. Digests can have several use cases such as ensuring the integrity of representations exchanges between resources, or for authentication purpose.
Representation.getDigest()
Field Summary | |
---|---|
static String |
ALGORITHM_HTTP_DIGEST
Digest algorithm for the HTTP DIGEST scheme. |
static String |
ALGORITHM_MD2
Digest algorithm defined in RFC 1319. |
static String |
ALGORITHM_MD5
Digest algorithm defined in RFC 1321. |
static String |
ALGORITHM_NONE
No digest algorithm defined. |
static String |
ALGORITHM_SHA_1
Digest algorithm defined in Secure Hash Standard, NIST FIPS 180-1. |
static String |
ALGORITHM_SHA_256
NIST approved digest algorithm from SHA-2 family. |
static String |
ALGORITHM_SHA_384
NIST approved digest algorithm from SHA-2 family. |
static String |
ALGORITHM_SHA_512
NIST approved digest algorithm from SHA-2 family. |
Constructor Summary | |
---|---|
Digest(byte[] value)
Constructor using the MD5 algorithm by default. |
|
Digest(String algorithm,
byte[] value)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAlgorithm()
Returns the digest algorithm. |
byte[] |
getValue()
Returns the digest value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ALGORITHM_MD2
public static final String ALGORITHM_MD5
public static final String ALGORITHM_NONE
public static final String ALGORITHM_SHA_1
public static final String ALGORITHM_SHA_256
public static final String ALGORITHM_SHA_384
public static final String ALGORITHM_SHA_512
public static final String ALGORITHM_HTTP_DIGEST
Constructor Detail |
---|
public Digest(byte[] value)
value
- The digest value.public Digest(String algorithm, byte[] value)
algorithm
- The digest algorithm.value
- The digest value.Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public String getAlgorithm()
public byte[] getValue()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |