public class PKIData extends CMSContentInfo
| Constructor and Description |
|---|
PKIData()
Creates an empty
PKIData instance. |
PKIData(java.io.InputStream is)
Create a new
PKIData by reading from the specified input stream. |
PKIData(java.util.Vector controlSeq, java.util.Vector reqSeq, java.util.Vector cmsSeq, java.util.Vector otherMsgSeq)
Creates a
PKIData 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.
|
void |
addTaggedRequest(TaggedRequest taggedRequest)
Adds a registration to the request.
|
void |
addTaggedRequest(java.util.Vector taggedRequests)
Adds a list of registrations 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.
|
java.util.Vector |
getTaggedRequests()
Returns the list of registrations 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.
|
java.util.Enumeration |
taggedRequests()
Returns the enumeration of registrations in the request.
|
protected void |
update()
Clears the internal output cache.
|
computeDigest, contentTypeName, getContentType, input, inputInstance, isDegenerate, length, outputpublic PKIData()
PKIData instance.public PKIData(java.util.Vector controlSeq,
java.util.Vector reqSeq,
java.util.Vector cmsSeq,
java.util.Vector otherMsgSeq)
PKIData instance with the specified values.controlSeq - The list of control attributes (TaggedAttributes).reqSeq - The list of registrations (TaggedRequests).cmsSeq - The list of CMS content (TaggedContentInfos).otherMsgSeq - The list of OtherMsg data (OtherMsgs).public PKIData(java.io.InputStream is)
throws java.io.IOException
PKIData by reading from the specified input stream.is - The input stream containing the encoded PKIData.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 addTaggedRequest(TaggedRequest taggedRequest)
taggedRequest - The specified registration message.public void addTaggedRequest(java.util.Vector taggedRequests)
taggedRequests - The specified registrations list.public java.util.Vector getTaggedRequests()
TaggedRequests.public java.util.Enumeration taggedRequests()
TaggedRequests.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 CMSContentInfoprotected 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