|
|||||||||
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.Content | +--com.ibm.security.pkcs7.DigestedData
Implements the ASN.1 DigestedData type.
The DigestedData content type adds an integrity check to the content of the Data content type, the result of which will become the content input to the EnvelopedData content type.
DigestedData objects are immutable; they cannot be changed once created.
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
DigestedData(byte[] der)
Create a DigestedData object with a DER byte array. |
|
DigestedData(byte[] der,
String provider)
Create a DigestedData object with a DER byte array. |
|
DigestedData(String filename,
boolean base64)
Create a DigestedData with the filename of the DER-encoded or BASE64-encoded object. |
|
DigestedData(String filename,
boolean base64,
String provider)
Create a DigestedData with the filename of the DER-encoded or BASE64-encoded object. |
|
DigestedData(String digestAlgorithm,
EncapsulatedContentInfo eci)
Create a DigestedData object with specified values. |
|
DigestedData(String digestAlgorithm,
EncapsulatedContentInfo eci,
String provider)
Create a DigestedData object with specified values. |
Method Summary | |
Object |
clone()
Creates a clone of this DigestedData object. |
protected void |
decode(com.ibm.security.pkcs7.DerValue encoding)
Initializes an DigestedData object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object other)
Determines if this DigestedData object is equivalent to the input object. |
byte[] |
getDigest()
Returns a copy of the message digest byte array for this object. |
AlgorithmId |
getDigestAlgorithm()
Returns a copy of the message digest AlgorithmId for this object. |
EncapsulatedContentInfo |
getEncapsulatedContentInfo()
Returns a copy of the EncapsulatedContentInfo for this object. |
ObjectIdentifier |
getObjectIdentifier()
Returns a reference to the ObjectIdentifer for the DigestedData object. |
BigInteger |
getVersion()
Returns a reference to the version for this object. |
String |
toString()
Returns a string representation of this DigestedData object. |
Methods inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
decode,
decode,
encode,
hashCode,
read,
readBASE64,
write,
write,
writeBASE64 |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public DigestedData(byte[] der) throws IOException
der
- a DER byte array of a DigestedData object.public DigestedData(byte[] der, String provider) throws IOException
der
- a DER byte array of a DigestedData object.provider
- the name of the java security provider to use.public DigestedData(String digestAlgorithm, EncapsulatedContentInfo eci) throws IOException, NoSuchAlgorithmException
digestAlgorithm
- message digest algorithmEncapsulatedContentInfo
- EncapsulatedContentInfo objectpublic DigestedData(String digestAlgorithm, EncapsulatedContentInfo eci, String provider) throws IOException, NoSuchAlgorithmException
digestAlgorithm
- message digest algorithmEncapsulatedContentInfo
- EncapsulatedContentInfo objectprovider
- the name of the java security provider to use.public DigestedData(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic DigestedData(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 use.Method Detail |
public Object clone()
public ObjectIdentifier getObjectIdentifier()
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 DigestedData object.public boolean equals(Object other)
other
- the object to compare this one to.public BigInteger getVersion()
public AlgorithmId getDigestAlgorithm() throws IOException
public EncapsulatedContentInfo getEncapsulatedContentInfo()
public byte[] getDigest()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |