|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.berkeley.psi.tagged.api.Tagged
edu.berkeley.psi.tagged.api.Digest
public abstract class Digest
Represents the results of a cryptographic hash algorithm applied to
the serialization (using XDR) of a Tagged object.
For verification purposes, the algorithm used is encoded in the tag
type.
Field Summary
protected byte[]data
static java.lang.StringDEFAULT_ALGORITHM
static intDEFAULT_ALGORITHM_ID
static intMD2
static intMD5
static intSHA1
static intSHA256
static intSHA384
static intSHA512
Fields inherited from class edu.berkeley.psi.tagged.api.Tagged
classes, initLock
Constructor Summary
Digest()
Method Summary
byte[]bytes()
DigestFactoryfactory()
abstract java.lang.StringgetAlgorithm()
static java.lang.StringgetAlgorithm(int id)
abstract intgetAlgorithmId()
static intgetAlgorithmId(java.lang.String alg)
intgetDigestLength()
Methods inherited from class edu.berkeley.psi.tagged.api.Tagged
addClass, addClass, digest, digest, digestWith, get, getBody, getTag, newInstance, newInstance, put, put, putBody, putTag, staticTag
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.acplt.oncrpc.XdrAble
xdrDecode, xdrEncode
Field Detail
data
protected byte[] data
SHA1
public static final int SHA1
SHA256
public static final int SHA256
SHA384
public static final int SHA384
SHA512
public static final int SHA512
MD5
public static final int MD5
MD2
public static final int MD2
DEFAULT_ALGORITHM_ID
public static final int DEFAULT_ALGORITHM_ID
DEFAULT_ALGORITHM
public static final java.lang.String DEFAULT_ALGORITHM
Constructor Detail
Digest
public Digest()
Method Detail
getAlgorithm
public abstract java.lang.String getAlgorithm()
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
getAlgorithmId
public abstract int getAlgorithmId()
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
getAlgorithm
public static final java.lang.String getAlgorithm(int id)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
getAlgorithmId
public static final int getAlgorithmId(java.lang.String alg)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
bytes
public final byte[] bytes()
factory
public final DigestFactory factory()
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
getDigestLength
public int getDigestLength()
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD