Oracle Security Developer Tools S/MIME Java API Reference
10g Release 2 (10.1.2.0.2)

B15567-01


oracle.security.crypto.smime.ess
Class MLReceiptPolicy

java.lang.Object
  extended byoracle.security.crypto.smime.ess.MLReceiptPolicy


public class MLReceiptPolicy
extends java.lang.Object

Represents the MLReceiptPolicy element which is part of the MLData Attribute.


Nested Class Summary
static class MLReceiptPolicy.PolicyType

Constructor Summary
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.

Method Summary
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.

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

MLReceiptPolicy

public MLReceiptPolicy(MLReceiptPolicy.PolicyType policyType)
Creates a new MLReceiptPolicy.
Parameters:
policyType - The mailing list receipt policy.

MLReceiptPolicy

public MLReceiptPolicy(MLReceiptPolicy.PolicyType policyType,
                       oracle.security.crypto.cert.GeneralNames generalNames)
Creates a new MLReceiptPolicy.
Parameters:
policyType - The mailing list receipt policy.
generalNames - The receipt GeneralNames.

MLReceiptPolicy

public MLReceiptPolicy(MLReceiptPolicy.PolicyType policyType,
                       java.util.Vector generalNames)
Creates a new MLReceiptPolicy.
Parameters:
policyType - The mailing list receipt policy.
generalNames - The collection of receipt GeneralNames.

MLReceiptPolicy

public MLReceiptPolicy(java.io.InputStream is)
                throws java.io.IOException
Creates a new MLReceiptPolicy by reading from the input stream.
Parameters:
is - The input stream.

Method Detail

equals

public boolean equals(java.lang.Object o)
Indicates if the object equals the specified object.
Returns:
If true this object is equal to the specified object; false otherwise.

hashCode

public int hashCode()
Return the hash code for this object.
Returns:
The hash code value.

addReceiptPolicyValues

public void addReceiptPolicyValues(oracle.security.crypto.cert.GeneralNames generalNames)
Add the GeneralNames to the Receipt Policy.

addReceiptPolicyValues

public void addReceiptPolicyValues(java.util.Vector generalNames)
Add the collection of GeneralNames to the Receipt Policy.

removeReceiptPolicyValues

public boolean removeReceiptPolicyValues(oracle.security.crypto.cert.GeneralNames generalNames)
Removes the GeneralNames from the Receipt Policy.
Returns:
If true the receipt policy value was successfully removed; false otherwise.

removeReceiptPolicyValues

public boolean removeReceiptPolicyValues(java.util.Vector generalNames)
Removes the collection of GeneralNames objects from the Receipt Policy.
Returns:
If true the receipt policy value was successfully removed; false otherwise.

getMLReceiptPolicyType

public MLReceiptPolicy.PolicyType getMLReceiptPolicyType()
Returns the type of MLReceiptPolicy.
Returns:
The MLReceiptPolicy type.

getReceiptNames

public java.util.Vector getReceiptNames()
Returns the MLReceiptPolicy values.
Returns:
A Vector whose elements are a Vector of GeneralName objects if present; null otherwise.

receiptNames

public java.util.Enumeration receiptNames()
Returns the MLReceiptPolicy values.
Returns:
An Enumeration whose element are a Vector of GeneralName objects if present; null otherwise.

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Initialize this object by reading the MLReceiptPolicy encoding from the specified input stream.
Parameters:
is - The input stream.
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Output this object's encoding to the specified output stream.
Parameters:
os - The output stream.
Throws:
java.io.IOException

length

public int length()
Returns the length of this object's encoding.
Returns:
The length in bytes.

toString

public java.lang.String toString()
Returns information about this object.
Returns:
A string.

Oracle Security Developer Tools S/MIME Java API Reference
10g Release 2 (10.1.2.0.2)

B15567-01


Copyright © 2005 , Oracle. All rights reserved.