public class ReceiptRequest
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ReceiptRequest.AllOrFirstTier
A 'AllOrFirstTier' is a part of the 'ReceiptsFrom' field of a  
ReceiptRequest. | 
| Modifier and Type | Field and Description | 
|---|---|
static int | 
UB_RECEIPTS_TO
The maximum number of receiver of receipts allowed. 
 | 
| Constructor and Description | 
|---|
ReceiptRequest(byte[] signedContentIdentifier, GeneralNames generalNames)
Create a  
ReceiptRequest object. | 
ReceiptRequest(byte[] signedContentIdentifier, GeneralNames rcptsFrom, GeneralNames generalNames)
Create a  
ReceiptRequest object. | 
ReceiptRequest(byte[] signedContentIdentifier, ReceiptRequest.AllOrFirstTier allOrFirstTier, GeneralNames generalNames)
Create a  
ReceiptRequest object. | 
ReceiptRequest(byte[] signedContentIdentifier, ReceiptRequest.AllOrFirstTier allOrFirstTier, java.util.Vector generalNames)
Create a  
ReceiptRequest object. | 
ReceiptRequest(byte[] signedContentIdentifier, java.util.Vector rcptsFrom, java.util.Vector generalNames)
Create a  
ReceiptRequest object. | 
ReceiptRequest(CMSSignerInfo si)
Create a  
ReceiptRequest object. | 
ReceiptRequest(java.io.InputStream is)
Create a  
ReceiptRequest object. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addReceiptsFrom(GeneralName generalName)
Adds an entity to the list of recipients who will receive the receipt request. 
 | 
void | 
addReceiptsFrom(GeneralNames generalNames)
Adds an entity to the list of recipients who will receive the receipt request. 
 | 
void | 
addReceiptsFrom(java.lang.String rfc822Name)
Adds an entity to the list of recipients who will receive the receipt request. 
 | 
void | 
addReceiptsFrom(java.util.Vector genNames)
Adds an entity to the recipientsFrom list who will receive the receipt request. 
 | 
void | 
addReceiptsFrom(X500Name directoryName)
Adds an entity to the list of recipients who will receive the receipt request. 
 | 
void | 
addReceiptsFrom(X500Name directoryName, java.lang.String rfc822Name)
Adds an entity to the list of recipients who will receive the receipt request. 
 | 
void | 
addReceiptsTo(GeneralName generalName)
Adds an entity to the list of recipients who will receive the receipt(s). 
 | 
void | 
addReceiptsTo(GeneralNames generalNames)
Adds an entity to the list of recipients who will receive the receipt(s). 
 | 
void | 
addReceiptsTo(java.lang.String rfc822Name)
Adds an entity to the list of recipients who will receive the receipt(s). 
 | 
void | 
addReceiptsTo(java.util.Vector generalNames)
Adds an entity to the list of recipients who will receive the receipt(s). 
 | 
void | 
addReceiptsTo(X500Name directoryName)
Adds an entity to the list of recipients who will receive the receipt(s). 
 | 
void | 
addReceiptsTo(X500Name directoryName, java.lang.String rfc822Name)
Adds an entity to the list of recipients who will receive the receipt(s). 
 | 
boolean | 
checkReceiptsFrom(GeneralName generalName)
Indicate if a Receipt has been requested from the specified entity. 
 | 
boolean | 
checkReceiptsFrom(java.lang.String rfc822Name)
Indicate if a Receipt has been requested from the specified entity. 
 | 
boolean | 
checkReceiptsFrom(X500Name recipientX500Name)
Indicate if a Receipt has been requested from the specified entity. 
 | 
boolean | 
equals(java.lang.Object o)
Indicates if the object equals the specified object. 
 | 
ReceiptRequest.AllOrFirstTier | 
getAllOrFirstTier()
Returns the AllOrFirstTierValue. 
 | 
java.util.Vector | 
getReceiptList()
Returns the list of recipients who will receive the receipt request(s). 
 | 
java.util.Vector | 
getReceiptsTo()
Returns the list of recipients who will receive the receipt(s). 
 | 
byte[] | 
getSignedContentIdentifier()
Returns the signed content identifier. 
 | 
int | 
hashCode()
Return the hash code for this object. 
 | 
void | 
input(java.io.InputStream is)  | 
int | 
length()
Returns the length of this object's encoding. 
 | 
void | 
output(java.io.OutputStream os)
Outputs this object's encoding to the specified output stream. 
 | 
java.util.Enumeration | 
receiptsFrom()
Returns the list of recipients who will receive the receipt request(s). 
 | 
java.util.Enumeration | 
receiptsTo()
Returns the list of recipients who will receive the receipt(s). 
 | 
void | 
setAllOrFirstTierReceiptsFrom(ReceiptRequest.AllOrFirstTier allOrFirstTier)
Sets the AllOrFirstTierValue. 
 | 
java.lang.String | 
toString()
Return information about this object. 
 | 
public static final int UB_RECEIPTS_TO
public ReceiptRequest(byte[] signedContentIdentifier,
                      GeneralNames generalNames)
ReceiptRequest object. By default all the recipients will have to send a receipt.signedContentIdentifier - The signed content identifier of this receipt request.generalNames - The recipient to whom the receipt should be sent.
public ReceiptRequest(byte[] signedContentIdentifier,
                      ReceiptRequest.AllOrFirstTier allOrFirstTier,
                      GeneralNames generalNames)
ReceiptRequest object.signedContentIdentifier - The signed content identifier of this receipt request.allOrFirstTier - The recipients who should sent a receipt.generalNames - The recipient to whom the receipt should be sent.
public ReceiptRequest(byte[] signedContentIdentifier,
                      ReceiptRequest.AllOrFirstTier allOrFirstTier,
                      java.util.Vector generalNames)
               throws oracle.security.crypto.util.InvalidInputException
ReceiptRequest object.signedContentIdentifier - The signed content identifier of this receipt request.allOrFirstTier - The recipients who should sent a receipt.generalNames - The recipients to whom the receipt should be sent.oracle.security.crypto.util.InvalidInputException
public ReceiptRequest(byte[] signedContentIdentifier,
                      GeneralNames rcptsFrom,
                      GeneralNames generalNames)
               throws oracle.security.crypto.util.InvalidInputException
ReceiptRequest object.signedContentIdentifier - The signed content identifier of this receipt request.rcptsFrom - The recipient who should sent a receipt.generalNames - The recipient to whom the receipt should be sent.oracle.security.crypto.util.InvalidInputException
public ReceiptRequest(byte[] signedContentIdentifier,
                      java.util.Vector rcptsFrom,
                      java.util.Vector generalNames)
               throws oracle.security.crypto.util.InvalidInputException
ReceiptRequest object.signedContentIdentifier - The signed content identifier of this receipt request.rcptsFrom - The recipients who should sent a receipt.generalNames - The recipients to whom the receipt should be sent.oracle.security.crypto.util.InvalidInputException
public ReceiptRequest(java.io.InputStream is)
               throws java.io.IOException
ReceiptRequest object.is - The input stream.java.io.IOException - The input encoding is incorrect or an I/O error occurs.public ReceiptRequest(CMSSignerInfo si) throws oracle.security.crypto.util.InvalidInputException
ReceiptRequest object.si - The message signer.oracle.security.crypto.util.InvalidInputException - The input encoding is incorrect or an I/O error occurs.public void addReceiptsTo(X500Name directoryName) throws oracle.security.crypto.util.InvalidInputException
directoryName - The X500 directory name of the entity to send the receipt to.oracle.security.crypto.util.InvalidInputException - The maximum number of allowed receipt requests has been exceeded.
public void addReceiptsTo(java.lang.String rfc822Name)
                   throws oracle.security.crypto.util.InvalidInputException
rfc822Name - The rfc822Name of an entity to send the receipt to.oracle.security.crypto.util.InvalidInputException - The maximum number of allowed receipt requests has been exceeded.public void addReceiptsTo(X500Name directoryName, java.lang.String rfc822Name) throws oracle.security.crypto.util.InvalidInputException
directoryName - The X500 directory name of an entity to send the receipt to.rfc822Name - The rfc822 name of an entity to send the receipt to.oracle.security.crypto.util.InvalidInputException - The maximum number of allowed receipt requests has been exceeded.public void addReceiptsTo(GeneralName generalName) throws oracle.security.crypto.util.InvalidInputException
generalName - The general name of an entity to send the receipt to.oracle.security.crypto.util.InvalidInputException - The maximum number of allowed receipt requests has been exceeded.public void addReceiptsTo(GeneralNames generalNames) throws oracle.security.crypto.util.InvalidInputException
generalNames - The general names of an entity to send the receipt to.oracle.security.crypto.util.InvalidInputException - The maximum number of allowed receipt requests has been exceeded.
public void addReceiptsTo(java.util.Vector generalNames)
                   throws oracle.security.crypto.util.InvalidInputException
generalNames - A list of general names of an entity to send the receipt to.oracle.security.crypto.util.InvalidInputException - The maximum number of allowed receipt requests has been exceeded.public void addReceiptsFrom(X500Name directoryName) throws oracle.security.crypto.util.InvalidInputException
directoryName - The X500 directory name of the entity to request a receipt from.oracle.security.crypto.util.InvalidInputException - This operation is not allowed as AllOrFirstTier is being used.
public void addReceiptsFrom(java.lang.String rfc822Name)
                     throws oracle.security.crypto.util.InvalidInputException
rfc822Name - The rfc822Name of an entity to request a receipt from.oracle.security.crypto.util.InvalidInputException - This operation is not allowed as AllOrFirstTier is being used.public void addReceiptsFrom(X500Name directoryName, java.lang.String rfc822Name) throws oracle.security.crypto.util.InvalidInputException
directoryName - The X500 directory name of an entity to request a receipt from.rfc822Name - The rfc822 name of an entity to request a receipt from.oracle.security.crypto.util.InvalidInputException - This operation is not allowed as AllOrFirstTier is being used.public void addReceiptsFrom(GeneralName generalName) throws oracle.security.crypto.util.InvalidInputException
generalName - The general name of an entity to send the receipt to.oracle.security.crypto.util.InvalidInputException - This operation is not allowed as AllOrFirstTier is being used.public void addReceiptsFrom(GeneralNames generalNames) throws oracle.security.crypto.util.InvalidInputException
generalNames - The GeneralNames of an entity to request a receipt from.oracle.security.crypto.util.InvalidInputException - This operation is not allowed as AllOrFirstTier is being used.
public void addReceiptsFrom(java.util.Vector genNames)
                     throws oracle.security.crypto.util.InvalidInputException
generalNames - A list of general names of an entity to send the receipt to.oracle.security.crypto.util.InvalidInputException - This operation is not allowed as AllOrFirstTier is being used.public void setAllOrFirstTierReceiptsFrom(ReceiptRequest.AllOrFirstTier allOrFirstTier) throws oracle.security.crypto.util.InvalidInputException
generalNames - A list of general names of an entity to send the receipt to.oracle.security.crypto.util.InvalidInputException - This operation is not allowed as ReceiptList is being used.public ReceiptRequest.AllOrFirstTier getAllOrFirstTier()
AllOrFirstTierValue object if present; null otherwise.public java.util.Enumeration receiptsTo()
Enumeration containing a list of GeneralNames i.e. ASN1Sequence objects whose elements are GeneralName objects if present; null otherwise.public java.util.Vector getReceiptsTo()
Vector containing a list of GeneralNames i.e. ASN1Sequence objects whose elements are GeneralName objects if present; null otherwise.public java.util.Enumeration receiptsFrom()
Enumeration containing a list of GeneralNames i.e. ASN1Sequence objects whose elements are GeneralName objects if present; null otherwise.public java.util.Vector getReceiptList()
Vector containing a list of GeneralNames i.e. ASN1Sequence objects whose elements are GeneralName objects if present; null otherwise.public byte[] getSignedContentIdentifier()
public boolean checkReceiptsFrom(X500Name recipientX500Name)
recipientX500Name - The X500 directory name of the recipient.true if a receipt has been requested; false otherwise.public boolean checkReceiptsFrom(java.lang.String rfc822Name)
recipientX500Name - The RFC822 name of the recipient.true if a receipt has been requested; false otherwise.public boolean checkReceiptsFrom(GeneralName generalName)
recipientX500Name - The general name of the recipient.true if a receipt has been requested; false otherwise.public boolean equals(java.lang.Object o)
equals in class java.lang.Objecttrue this object is equal to the specified object; false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public void input(java.io.InputStream is)
           throws java.io.IOException
input in interface oracle.security.crypto.util.Streamablejava.io.IOException
public void output(java.io.OutputStream os)
            throws java.io.IOException
output in interface oracle.security.crypto.util.Streamableos - The output stream.java.io.IOException - An I/O error occurred.public int length()
length in interface oracle.security.crypto.util.Streamable