|
|||||||||
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.EncapsulatedContentInfo
Implements the ASN.1 EncapsulatedContentInfo data type as defined in S/MIME CMS.
This definition reflects PKCS #7 version 1.5 specifications with selected enhancements from the Cryptographic Message Syntax (CMS) RFC 2630 specifications.
EncapsulatedContentInfo objects are immutable; they cannot be changed once created.
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
EncapsulatedContentInfo(byte[] der)
Create an EncapsulatedContentInfo object with a DER-encoded byte array. |
|
EncapsulatedContentInfo(byte[] der,
String provider)
Create an EncapsulatedContentInfo object with a DER-encoded byte array. |
|
EncapsulatedContentInfo(ContentInfo contentInfo)
Create an EncapsulatedContentInfo from a ContentInfo. |
|
EncapsulatedContentInfo(ContentInfo contentInfo,
String provider)
Create an EncapsulatedContentInfo from a ContentInfo. |
|
EncapsulatedContentInfo(String filename,
boolean base64)
Create an EncapsulatedContentInfo with the filename of the DER-encoded or BASE64-encoded object. |
|
EncapsulatedContentInfo(String filename,
boolean base64,
String provider)
Create an EncapsulatedContentInfo with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
Object |
clone()
Creates a clone of this EncapsulatedContentInfo object. |
protected void |
decode(com.ibm.security.pkcs7.DerValue encoding)
Initializes an EncapsulatedContentInfo object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object other)
Determines if this EncapsulatedContentInfo object is equivalent to the input object. |
byte[] |
getContent()
Returns a copy of the content byte array contained in this EncapsulatedContentInfo object. |
ContentInfo |
getContentInfo()
Constructs and returns a ContentInfo object based on this EncapsulatedContentInfo object's contentType and content attributes. |
ObjectIdentifier |
getContentType()
Returns a reference to the ObjectIdentifer for the EncapsulatedContentInfo object. |
String |
toString()
Returns a string representation of this EncapsulatedContentInfo 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 EncapsulatedContentInfo(byte[] der) throws IOException
der
- a DER-encoded byte array of an EncapsulatedContentInfo object.public EncapsulatedContentInfo(byte[] der, String provider) throws IOException
der
- a DER-encoded byte array of an EncapsulatedContentInfo object.provider
- the name of the java security provider to usepublic EncapsulatedContentInfo(ContentInfo contentInfo) throws IOException
contentInfo
- ContentInfo object.public EncapsulatedContentInfo(ContentInfo contentInfo, String provider) throws IOException
contentInfo
- ContentInfo object.provider
- the name of the java security provider to usepublic EncapsulatedContentInfo(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic EncapsulatedContentInfo(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 EncapsulatedContentInfo object.public boolean equals(Object other)
other
- the object to compare this one to.public String toString()
public ObjectIdentifier getContentType()
public ContentInfo getContentInfo() throws IOException
public byte[] getContent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |