public class MLReceiptPolicy
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MLReceiptPolicy.PolicyType |
| Constructor and Description |
|---|
MLReceiptPolicy(java.io.InputStream is)
Creates a new
MLReceiptPolicy by reading from the input stream. |
MLReceiptPolicy(MLReceiptPolicy.PolicyType policyType)
Creates a new
MLReceiptPolicy. |
MLReceiptPolicy(MLReceiptPolicy.PolicyType policyType, oracle.security.crypto.cert.GeneralNames generalNames)
Creates a new
MLReceiptPolicy. |
MLReceiptPolicy(MLReceiptPolicy.PolicyType policyType, java.util.Vector generalNames)
Creates a new
MLReceiptPolicy. |
| Modifier and Type | Method and Description |
|---|---|
void |
addReceiptPolicyValues(oracle.security.crypto.cert.GeneralNames generalNames)
Add the
GeneralNames to the Receipt Policy. |
void |
addReceiptPolicyValues(java.util.Vector generalNames)
Add the collection of
GeneralNames to the Receipt Policy. |
boolean |
equals(java.lang.Object o)
Indicates if the object equals the specified object.
|
MLReceiptPolicy.PolicyType |
getMLReceiptPolicyType()
Returns the type of MLReceiptPolicy.
|
java.util.Vector |
getReceiptNames()
Returns the MLReceiptPolicy values.
|
int |
hashCode()
Return the hash code for this object.
|
void |
input(java.io.InputStream is)
Initialize this object by reading the MLReceiptPolicy encoding from the specified input stream.
|
int |
length()
Returns the length of this object's encoding.
|
void |
output(java.io.OutputStream os)
Output this object's encoding to the specified output stream.
|
java.util.Enumeration |
receiptNames()
Returns the MLReceiptPolicy values.
|
boolean |
removeReceiptPolicyValues(oracle.security.crypto.cert.GeneralNames generalNames)
Removes the
GeneralNames from the Receipt Policy. |
boolean |
removeReceiptPolicyValues(java.util.Vector generalNames)
Removes the collection of
GeneralNames objects from the Receipt Policy. |
java.lang.String |
toString()
Returns information about this object.
|
public MLReceiptPolicy(MLReceiptPolicy.PolicyType policyType)
MLReceiptPolicy.policyType - The mailing list receipt policy.public MLReceiptPolicy(MLReceiptPolicy.PolicyType policyType, oracle.security.crypto.cert.GeneralNames generalNames)
MLReceiptPolicy.policyType - The mailing list receipt policy.generalNames - The receipt GeneralNames.public MLReceiptPolicy(MLReceiptPolicy.PolicyType policyType, java.util.Vector generalNames)
MLReceiptPolicy.policyType - The mailing list receipt policy.generalNames - The collection of receipt GeneralNames.
public MLReceiptPolicy(java.io.InputStream is)
throws java.io.IOException
MLReceiptPolicy by reading from the input stream.is - The input stream.AlgorithmIdentifierException - If the input encoding is incorrect or an I/O error occurred.java.io.IOExceptionpublic 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 void addReceiptPolicyValues(oracle.security.crypto.cert.GeneralNames generalNames)
GeneralNames to the Receipt Policy.public void addReceiptPolicyValues(java.util.Vector generalNames)
GeneralNames to the Receipt Policy.public boolean removeReceiptPolicyValues(oracle.security.crypto.cert.GeneralNames generalNames)
GeneralNames from the Receipt Policy.true the receipt policy value was successfully removed; false otherwise.public boolean removeReceiptPolicyValues(java.util.Vector generalNames)
GeneralNames objects from the Receipt Policy.true the receipt policy value was successfully removed; false otherwise.public MLReceiptPolicy.PolicyType getMLReceiptPolicyType()
public java.util.Vector getReceiptNames()
Vector whose elements are a Vector of GeneralName objects if present; null otherwise.public java.util.Enumeration receiptNames()
Enumeration whose element are a Vector of GeneralName objects if present; null otherwise.
public void input(java.io.InputStream is)
throws java.io.IOException
input in interface oracle.security.crypto.util.Streamableis - The input stream.java.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.IOExceptionpublic int length()
length in interface oracle.security.crypto.util.Streamablepublic java.lang.String toString()
toString in class java.lang.Object