edu.berkeley.psi.tagged.api
Class SHA512Digest
java.lang.Object
edu.berkeley.psi.tagged.api.Tagged
edu.berkeley.psi.tagged.api.Digest
edu.berkeley.psi.tagged.api.SHA512Digest
- All Implemented Interfaces:
- TaggedIF, XdrAble
public class SHA512Digest
- extends Digest
Represents a SHA-512 hash digest result. It will normally be
XDR-serialized as a 4-byte tag followed by a 64-byte hash value.
Methods inherited from class edu.berkeley.psi.tagged.api.Tagged |
addClass, addClass, digest, digest, digestWith, get, getBody, getTag, newInstance, put, put, putBody, putTag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHA512_LENGTH
protected static final int SHA512_LENGTH
- See Also:
- Constant Field Values
SHA512Digest
SHA512Digest(byte[] data)
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in class Digest
staticTag
public static int staticTag()
getAlgorithmId
public int getAlgorithmId()
- Specified by:
getAlgorithmId
in class Digest
newInstance
public static Digest newInstance(byte[] data)
xdrDecode
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException,
java.io.IOException
- Description copied from interface:
XdrAble
- Decodes -- that is: deserializes -- an object from a XDR stream in
compliance to RFC 1832.
- Parameters:
xdr
- XDR stream from which decoded information is retrieved.
- Throws:
OncRpcException
- if an ONC/RPC error occurs.
java.io.IOException
- if an I/O error occurs.
xdrEncode
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException,
java.io.IOException
- Description copied from interface:
XdrAble
- Encodes -- that is: serializes -- an object into a XDR stream in
compliance to RFC 1832.
- Parameters:
xdr
- XDR stream to which information is sent for encoding.
- Throws:
OncRpcException
- if an ONC/RPC error occurs.
java.io.IOException
- if an I/O error occurs.
newInstance
static Digest newInstance()