|
Oracle Security Developer Tools CMS Java API Reference 10g (10.1.4.0.1) B28170-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cms.CMSContentInfo
oracle.security.crypto.cms.ESSReceipt
This class encapulates a CMS object of content type Receipt
.
It is used to send secure digital receipts as part of the S/MIME Enhanced Security Services (RFC-2634).
Constructor Summary | |
ESSReceipt() Creates an empty ESSReceipt . |
|
ESSReceipt(oracle.security.crypto.asn1.ASN1ObjectID contentType, byte[] signedContentIdentifier, byte[] originatorSignatureValue) Creates a ESSReceipt . |
|
ESSReceipt(java.io.InputStream is) Creates a ESSReceipt , by reading a BER encoding from the given input stream. |
Method Summary | |
protected byte[] |
getExposedContent() Returns the contents octets of the DER encoding of the content field of this CMS object. |
byte[] |
getOriginatorSignatureValue() Return the signature value of the message that triggered the generation of this receipt. |
oracle.security.crypto.asn1.ASN1ObjectID |
getReceiptContentType() Returns the content type of the message that triggered the generation of this receipt. |
byte[] |
getReceiptData() Returns the encoded receipt. |
byte[] |
getSignedContentIdentifier() Returns the signed content identifier of the message that triggered the generation of this receipt. |
void |
inputContent(java.io.InputStream is) Initialize this object by reading the BER encoding from the specified input stream. |
boolean |
isDetached() Indicate if this object is detached. |
protected void |
setExposedContent(byte[] expContent) Returns the contents octets of the DER encoding of the content field of this CMS object. |
java.lang.String |
toString() Returns a brief text description of this object. |
protected void |
update() Clears the internal output cache. |
Methods inherited from class oracle.security.crypto.cms.CMSContentInfo |
computeDigest, contentTypeName, getContentType, input, inputInstance, isDegenerate, length, output |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ESSReceipt()
ESSReceipt
.public ESSReceipt(oracle.security.crypto.asn1.ASN1ObjectID contentType, byte[] signedContentIdentifier, byte[] originatorSignatureValue)
ESSReceipt
.contentType
- The content type identifier.signedContentIdentifier
- The signed content identifier.originatorSignatureValue
- The signature value.public ESSReceipt(java.io.InputStream is) throws java.io.IOException
ESSReceipt
, by reading a BER encoding from the given input stream.is
- The input stream.java.io.IOException
- If the input is not correctly formatted or an I/O exception occurs while reading from the input stream.Method Detail |
protected void setExposedContent(byte[] expContent)
CMSContentInfo
setExposedContent
in class CMSContentInfo
null
for a detached CMS object.CMSContentInfo.isDetached()
protected byte[] getExposedContent()
CMSContentInfo
getExposedContent
in class CMSContentInfo
null
for a detached CMS object.CMSContentInfo.isDetached()
public boolean isDetached()
This method returns true only for an empty ESSReceipt
object which is not allowed by RFC-2634.
isDetached
in class CMSContentInfo
true
if detached; false
otherwise.CMSContentInfo.isDetached()
public oracle.security.crypto.asn1.ASN1ObjectID getReceiptContentType()
public byte[] getSignedContentIdentifier()
public byte[] getOriginatorSignatureValue()
public byte[] getReceiptData() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
public void inputContent(java.io.InputStream is) throws java.io.IOException
inputContent
in class CMSContentInfo
is
- The input stream.java.io.IOException
- An I/O error occurred or the object encoding was incorrect.protected void update()
update
in class CMSContentInfo
|
Oracle Security Developer Tools CMS Java API Reference 10g (10.1.4.0.1) B28170-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |