|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.core.DigestInfo
public final class DigestInfo
The DigestInfo structure of PKCS #1 and CMS.
| Constructor Summary | |
|---|---|
DigestInfo()Creates a new empty instance. |
|
DigestInfo(AlgorithmIdentifier digestAlgID, byte[] digest)Creates a new instance with the specified parameters. |
|
DigestInfo(java.io.InputStream is)Creates a new DigestInfo object from the specified stream. |
|
| Method Summary | |
|---|---|
boolean |
equals(AlgorithmIdentifier digestAlgID, byte[] digest)Tests if the algorithm identifier and the digest value of this DigestInfo object are identical to the specified parameters. |
boolean |
equals(java.lang.Object o)Compares this DigestInfo object to the specified parameter. |
byte[] |
getDigest()Returns the digest value. |
AlgorithmIdentifier |
getDigestAlgID()Returns the hash algorithm of this digest info object. |
void |
input(java.io.InputStream is)Inputs this object from the specified input stream. |
int |
length()Length of this object's encoding. |
void |
output(java.io.OutputStream os)Outputs this object to the specified output stream. |
void |
readExternal(java.io.ObjectInput is)Reads the input stream and initializes the digest info. |
java.lang.String |
toString()Returns a description of this DigestInfo instance. |
void |
writeExternal(java.io.ObjectOutput os)Writes to the output stream the DER encoding of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DigestInfo()
public DigestInfo(AlgorithmIdentifier digestAlgID,
byte[] digest)
digestAlgID - The hash algorithm identifier corresponding to the digest.digest - The digest value.
public DigestInfo(java.io.InputStream is)
throws java.io.IOException
is - The stream to read the data from.java.io.IOException| Method Detail |
|---|
public AlgorithmIdentifier getDigestAlgID()
public byte[] getDigest()
public boolean equals(AlgorithmIdentifier digestAlgID,
byte[] digest)
digestAlgID - The AlgorithmIdentifier to compare with the AlgorithmIdentifier of this DigestInfo.digest - The digest value to compare with the digest value of this DigestInfo instance.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public void input(java.io.InputStream is)
throws java.io.IOException
Streamableinput in interface Streamablejava.io.IOException
public void output(java.io.OutputStream os)
throws java.io.IOException
Streamableoutput in interface Streamablejava.io.IOExceptionpublic int length()
Streamablelength in interface Streamable
public void writeExternal(java.io.ObjectOutput os)
throws java.io.IOException
writeExternal in interface java.io.Externalizableos - The output stream to write the encoding to.java.io.IOException
public void readExternal(java.io.ObjectInput is)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizableis - The stream to read from.java.io.IOExceptionjava.lang.ClassNotFoundException
|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||