public class ResponseBody extends CMSContentInfo
| Constructor and Description |
|---|
ResponseBody()
Creates an empty
ResponseBody instance. |
ResponseBody(java.io.InputStream is)
Create a new
ResponseBody by reading from the specified input stream. |
ResponseBody(java.util.Vector controlSeq,
java.util.Vector cmsSeq,
java.util.Vector otherMsgSeq)
Creates a
ResponseBody instance with the specified values. |
| Modifier and Type | Method and Description |
|---|---|
void |
addOtherMsg(OtherMsg otherMsg)
Adds an OtherMsg to the request.
|
void |
addOtherMsg(java.util.Vector otherMsgs)
Adds a list of OtherMsgs to the request.
|
void |
addTaggedAttribute(TaggedAttribute taggedAttribute)
Adds a control attribute to the request.
|
void |
addTaggedAttribute(java.util.Vector taggedAttributes)
Adds a list of control attributes to the request.
|
void |
addTaggedContentInfo(TaggedContentInfo cms)
Adds CMS content to the request.
|
void |
addTaggedContentInfo(java.util.Vector cms)
Adds a list of CMS content to the request.
|
protected byte[] |
getExposedContent()
Returns the contents octets of the DER encoding of the content field of this CMS
object.
|
java.util.Vector |
getOtherMsgs()
Returns the list of OtherMsgs in the request.
|
java.util.Vector |
getTaggedAttributes()
Returns the list of control attributes in the request.
|
java.util.Vector |
getTaggedContentInfos()
Returns the list of CMS ContentInfos in the request.
|
protected void |
inputContent(java.io.InputStream is)
Initializes this object by reading the Content field of the CMS ContentInfo structure i.e.
|
boolean |
isDetached()
This method must be implemented by the subclasses.
|
java.util.Enumeration |
otherMsgs()
Returns the enumeration of OtherMsgs in the request.
|
protected void |
setExposedContent(byte[] expContent)
Returns the contents octets of the DER encoding of the content field of this CMS
object.
|
java.util.Enumeration |
taggedAttributes()
Returns the enumeration of control attributes in the request.
|
java.util.Enumeration |
taggedContentInfos()
Returns the enumeration of CMS ContentInfos in the request.
|
protected void |
update()
Clears the internal output cache.
|
computeDigest, contentTypeName, getContentType, input, inputInstance, isDegenerate, length, outputpublic ResponseBody()
ResponseBody instance.public ResponseBody(java.util.Vector controlSeq,
java.util.Vector cmsSeq,
java.util.Vector otherMsgSeq)
ResponseBody instance with the specified values.controlSeq - The list of control attributes (TaggedAttributes).cmsSeq - The list of CMS content (TaggedContentInfos).otherMsgSeq - The list of OtherMsg data (OtherMsgs).public ResponseBody(java.io.InputStream is)
throws java.io.IOException
ResponseBody by reading from the specified input stream.is - The input stream containing the encoded ResponseBody.java.io.IOExceptionpublic void addTaggedAttribute(TaggedAttribute taggedAttribute)
taggedAttribute - The specified attribute.public void addTaggedAttribute(java.util.Vector taggedAttributes)
taggedAttributes - The specified attribute list.public java.util.Vector getTaggedAttributes()
TaggedAtttributes.public java.util.Enumeration taggedAttributes()
TaggedAtttributes.public void addTaggedContentInfo(TaggedContentInfo cms)
cms - The specified CMS content.public void addTaggedContentInfo(java.util.Vector cms)
cms - The specified CMS content list.public java.util.Vector getTaggedContentInfos()
TaggedContentInfos.public java.util.Enumeration taggedContentInfos()
TaggedContentInfos.public void addOtherMsg(OtherMsg otherMsg)
otherMsg - The specified OtherMsg..public void addOtherMsg(java.util.Vector otherMsgs)
otherMsgs - The specified OtherMsg list.public java.util.Vector getOtherMsgs()
OtherMsgs.public java.util.Enumeration otherMsgs()
OtherMsgs.protected void setExposedContent(byte[] expContent)
CMSContentInfosetExposedContent in class CMSContentInfoCMSContentInfo.isDetached()protected byte[] getExposedContent()
CMSContentInfogetExposedContent in class CMSContentInfonull for a detached CMS object.CMSContentInfo.isDetached()protected void update()
update in class CMSContentInfopublic boolean isDetached()
CMSContentInfoA detached object is defined as one in which the protected content is not present.
In the case of CMSDigestedDataContentInfo,
CMSSignedDataContentInfo and CMSAuthenticatedDataContentInfo
the econtent is missing in the EncapsulatedContentInfo structure. In the
case of CMSEncryptedDataContentInfo and CMSEnvelopedDataContentInfo
the encryptedContent is missing in the EncryptedContentInfo structure.
NOTE: This method only indicates the presence of protected content. There is no way to distinguish between missing content and empty protected content.
isDetached in class CMSContentInfotrue if the protected content is missing true; falseotherwisefalse.protected void inputContent(java.io.InputStream is)
throws java.io.IOException
CMSContentInfoThis method must be implemented by subclasses. It is unlikely that package users will ever need to call it directly.
inputContent in class CMSContentInfojava.io.IOException