public class ESSReceipt extends CMSContentInfo
Receipt.
It is used to send secure digital receipts as part of the S/MIME Enhanced Security Services (RFC-2634).
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
computeDigest, contentTypeName, getContentType, input, inputInstance, isDegenerate, length, outputpublic 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.protected void setExposedContent(byte[] expContent)
CMSContentInfosetExposedContent in class CMSContentInfoCMSContentInfo.isDetached()protected byte[] getExposedContent()
CMSContentInfogetExposedContent in class CMSContentInfonull 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 CMSContentInfotrue 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.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void inputContent(java.io.InputStream is)
throws java.io.IOException
inputContent in class CMSContentInfois - The input stream.java.io.IOException - An I/O error occurred or the object encoding was incorrect.protected void update()
update in class CMSContentInfo