Skip navigation links

Oracle Fusion Middleware S/MIME Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10672-05


oracle.security.crypto.smime.ess
Class MLData

java.lang.Object
  extended by oracle.security.crypto.smime.ess.MLData

All Implemented Interfaces:
oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class MLData
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object

Represents the MLData element which is used in the MLExpansionHistory Attribute.


Constructor Summary
MLData(java.io.InputStream is)
          Creates a new MLData by reading from the input stream.
MLData(java.security.cert.X509Certificate cert, java.util.Date date)
          Creates a new MLData using the specified certificate and date.
MLData(java.security.cert.X509Certificate cert, java.util.Date date, boolean useSKI64)
          Creates a new MLData using the specified certificate and date.
MLData(java.security.cert.X509Certificate cert, java.util.Date date, boolean useSKI64, MLReceiptPolicy policy)
          Creates a new MLData using the specified certificate and date.
MLData(java.security.cert.X509Certificate cert, java.util.Date date, MLReceiptPolicy policy)
          Creates a new MLData using the specified certificate and date.

 

Method Summary
 boolean equals(java.lang.Object o)
          Indicates if the object equals the specified object.
 oracle.security.crypto.asn1.ASN1Date getExpansionTime()
          Returns the Expansion Time.
 oracle.security.crypto.cert.IssuerAndSerialNo getIASN()
          Returns the IssuerAndSerialNo entity identifier.
 MLReceiptPolicy getMLReceiptPolicy()
          Indicates if the MLReceiptPolicy is present.
 byte[] getSKI()
          Returns the SubjectKeyIdentifier entity identifier.
 int hashCode()
          Return the hash code for this object.
 void input(java.io.InputStream is)
          Initialize this object by reading the MLData 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.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

MLData

public MLData(java.security.cert.X509Certificate cert,
              java.util.Date date)
       throws java.security.cert.CertificateEncodingException,
              java.io.IOException
Creates a new MLData using the specified certificate and date.

IssuerAndSerialNumber is used as the EntityIdentifier.

Note the changes in the method signature

Previously : public MLData (X509, Date)

Now : public MLData (X509Certificate , Date )

Note the changes in the exceptions

Exceptions introduced : CertificateEncodingException,IOException

Parameters:
cert - The X509 certificate.
date - The expansion time.
Throws:
java.security.cert.CertificateEncodingException
java.io.IOException

MLData

public MLData(java.security.cert.X509Certificate cert,
              java.util.Date date,
              boolean useSKI64)
       throws java.security.NoSuchAlgorithmException
Creates a new MLData using the specified certificate and date.

SubjectKeyIdentifier is used as the EntityIdentifier.

Note the changes in the method signature

Previously : public MLData (X509 , Date , boolean )

Now : public MLData (X509Certificate , Date , boolean)

Note the changes in the exceptions

Exceptions introduced : NoSuchAlgorithmException

Parameters:
cert - The X509 certificate.
date - The expansion time.
useSKI64 - If true the 64 bit SubjectKeyIdentifier is used; If true the 160 bit SubjectKeyIdentifier is used;
Throws:
java.security.NoSuchAlgorithmException

MLData

public MLData(java.security.cert.X509Certificate cert,
              java.util.Date date,
              MLReceiptPolicy policy)
       throws java.security.cert.CertificateEncodingException,
              java.io.IOException
Creates a new MLData using the specified certificate and date.

IssuerAndSerialNumber is used as the EntityIdentifier.

Note the changes in the method signature

Previously : public MLData (X509, Date , MLReceiptPolicy )

Now : public MLData (X509Certificate, Date , MLReceiptPolicy )

Note the changes in the exceptions

Exceptions introduced : CertificateEncodingException,IOException

Parameters:
cert - The X509 certificate.
date - The expansion time.
receiptPolicyType - The mailing list receipt policy.
Throws:
java.security.cert.CertificateEncodingException
java.io.IOException

MLData

public MLData(java.security.cert.X509Certificate cert,
              java.util.Date date,
              boolean useSKI64,
              MLReceiptPolicy policy)
       throws java.security.NoSuchAlgorithmException
Creates a new MLData using the specified certificate and date.

SubjectKeyIdentifier is used as the EntityIdentifier.

IssuerAndSerialNumber is used as the EntityIdentifier.

Note the changes in the method signature

Previously : public MLData (X509, Date ,boolean, MLReceiptPolicy )

Now : public MLData (X509Certificate, Date ,boolean, MLReceiptPolicy )

Note the changes in the exceptions

Exceptions introduced : NoSuchAlgorithmException

Parameters:
cert - The X509 certificate.
date - The expansion time.
useSKI64 - If true the 64 bit SubjectKeyIdentifier is used; If true the 160 bit SubjectKeyIdentifier is used;
receiptPolicyType - An unrecognized type is treated as ML_RECEIPT_POLICY_NONE;
receiptPolicyValues - A Vector containing GeneralNames.
Throws:
java.security.NoSuchAlgorithmException

MLData

public MLData(java.io.InputStream is)
       throws java.io.IOException
Creates a new MLData by reading from the input stream.
Parameters:
is - The input stream.
IOException - If the input encoding is incorrect or an I/O error occurred.
Throws:
java.io.IOException

Method Detail

equals

public boolean equals(java.lang.Object o)
Indicates if the object equals the specified object.
Overrides:
equals in class java.lang.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.
Overrides:
hashCode in class java.lang.Object
Returns:
The hash code value.

getIASN

public oracle.security.crypto.cert.IssuerAndSerialNo getIASN()
Returns the IssuerAndSerialNo entity identifier.
Returns:
The IssuerAndSerialNo if present; null otherwise.

getSKI

public byte[] getSKI()
Returns the SubjectKeyIdentifier entity identifier.
Returns:
The key identifier if present; null otherwise.

getExpansionTime

public oracle.security.crypto.asn1.ASN1Date getExpansionTime()
Returns the Expansion Time.
Returns:
The expansion time.

getMLReceiptPolicy

public MLReceiptPolicy getMLReceiptPolicy()
Indicates if the MLReceiptPolicy is present.
Returns:
MLReceiptPolicy if present.

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Initialize this object by reading the MLData encoding from the specified input stream.
Specified by:
input in interface oracle.security.crypto.util.Streamable
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.
Specified by:
output in interface oracle.security.crypto.util.Streamable
Parameters:
os - The output stream.
Throws:
java.io.IOException

length

public int length()
Returns the length of this object's encoding.
Specified by:
length in interface oracle.security.crypto.util.Streamable
Returns:
The length in bytes.

toString

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

Skip navigation links

Oracle Fusion Middleware S/MIME Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10672-05


Copyright © 2005, 2013, Oracle. All rights reserved.