|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security.pkcsutil.PKCSDerObject | +--com.ibm.security.pkcs7.DigestInfo
Implements the ASN.1 DigestInfo type.
DigestInfo objects are immutable; they cannot be changed once created.
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
DigestInfo(byte[] der)
Create a DigestInfo object with a DER-encoded byte array. |
|
DigestInfo(byte[] der,
String provider)
Create a DigestInfo object with a DER-encoded byte array. |
|
DigestInfo(String algname,
AlgorithmParameters params,
byte[] digest)
Create an DigestInfo object with the specified values. |
|
DigestInfo(String algname,
AlgorithmParameters params,
byte[] digest,
String provider)
Create an DigestInfo object with the specified values. |
|
DigestInfo(String filename,
boolean base64)
Create a DigestInfo with the filename of the DER-encoded or BASE64-encoded object. |
|
DigestInfo(String filename,
boolean base64,
String provider)
Create a DigestInfo with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
Object |
clone()
Creates a clone of this DigestInfo. |
protected void |
decode(com.ibm.security.pkcs7.DerValue encoding)
Initializes an DigestInfo object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object other)
Determines if this DigestInfo object is equivalent to the input object. |
byte[] |
getDigest()
Returns a copy of the byte array of the digest for this DigestInfo object. |
AlgorithmId |
getDigestAlgorithm()
Returns a copy of the digest AlgorithmId for this DigestInfo object. |
String |
toString()
Returns a string representation of this DigestInfo object. |
Methods inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
decode,
decode,
encode,
getObjectIdentifier,
hashCode,
read,
readBASE64,
write,
write,
writeBASE64 |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public DigestInfo(byte[] der) throws IOException
der
- a DER-encoded byte array encoding a DigestInfo object.public DigestInfo(byte[] der, String provider) throws IOException
der
- a DER-encoded byte array encoding a DigestInfo object.provider
- the name of the java security provider to use.public DigestInfo(String algname, AlgorithmParameters params, byte[] digest) throws IOException, NoSuchAlgorithmException
algname
- the message digest algorithm that created the input
digest.params
- the parameters used in the digest algorithm.digest
- a message digest.public DigestInfo(String algname, AlgorithmParameters params, byte[] digest, String provider) throws IOException, NoSuchAlgorithmException
algname
- the message digest algorithm that created the input
digest.params
- the parameters used in the digest algorithm.digest
- a message digest.provider
- the name of the java security provider to usepublic DigestInfo(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic DigestInfo(String filename, boolean base64, String provider) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedprovider
- the name of the java security provider to useMethod Detail |
public Object clone()
public void encode(OutputStream os) throws IOException
os
- the OutputStream to write the encoded data to.protected void decode(com.ibm.security.pkcs7.DerValue encoding) throws IOException
encoding
- a DER-encoded DigestInfo object.public boolean equals(Object other)
other
- the object to compare this one to.public AlgorithmId getDigestAlgorithm() throws IOException
public byte[] getDigest()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |