|
Oracle Fusion Middleware S/MIME Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10672-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.smime.ess.MLData
public class MLData
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 |
---|
public MLData(java.security.cert.X509Certificate cert, java.util.Date date) throws java.security.cert.CertificateEncodingException, java.io.IOException
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
cert
- The X509 certificate.date
- The expansion time.java.security.cert.CertificateEncodingException
java.io.IOException
public MLData(java.security.cert.X509Certificate cert, java.util.Date date, boolean useSKI64) throws java.security.NoSuchAlgorithmException
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
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;java.security.NoSuchAlgorithmException
public MLData(java.security.cert.X509Certificate cert, java.util.Date date, MLReceiptPolicy policy) throws java.security.cert.CertificateEncodingException, java.io.IOException
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
cert
- The X509 certificate.date
- The expansion time.receiptPolicyType
- The mailing list receipt policy.java.security.cert.CertificateEncodingException
java.io.IOException
public MLData(java.security.cert.X509Certificate cert, java.util.Date date, boolean useSKI64, MLReceiptPolicy policy) throws java.security.NoSuchAlgorithmException
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
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
.java.security.NoSuchAlgorithmException
public MLData(java.io.InputStream is) throws java.io.IOException
MLData
by reading from the input stream.
is
- The input stream.IOException
- If the input encoding is incorrect or an I/O error occurred.java.io.IOException
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
true
this object is equal to the specified object; false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public oracle.security.crypto.cert.IssuerAndSerialNo getIASN()
IssuerAndSerialNo
if present; null
otherwise.public byte[] getSKI()
null
otherwise.public oracle.security.crypto.asn1.ASN1Date getExpansionTime()
public MLReceiptPolicy getMLReceiptPolicy()
MLReceiptPolicy
if present.public void input(java.io.InputStream is) throws java.io.IOException
input
in interface oracle.security.crypto.util.Streamable
is
- The input stream.java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
output
in interface oracle.security.crypto.util.Streamable
os
- The output stream.java.io.IOException
public int length()
length
in interface oracle.security.crypto.util.Streamable
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Fusion Middleware S/MIME Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10672-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |