public class MLData
extends java.lang.Object
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates if the object equals the specified object.
|
ASN1Date |
getExpansionTime()
Returns the Expansion Time.
|
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.
|
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 - Error while encoding the certificatejava.io.IOException - Error while creating the X509 objectpublic 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 - SHA 1 Algorithm not supportedpublic 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.policy - The mailing list receipt policy.java.security.cert.CertificateEncodingException - Error while encoding the certificatejava.io.IOException - Error while creating the X509 objectpublic 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;java.security.NoSuchAlgorithmException - Error occurred when key hash was being generatedpublic MLData(java.io.InputStream is)
throws java.io.IOException
MLData by reading from the input stream.is - The input stream.java.io.IOException - If the input encoding is incorrect or an I/O error occurred.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 IssuerAndSerialNo getIASN()
IssuerAndSerialNo if present; null otherwise.public byte[] getSKI()
null otherwise.public ASN1Date getExpansionTime()
public MLReceiptPolicy getMLReceiptPolicy()
MLReceiptPolicy if present.public void input(java.io.InputStream is)
throws java.io.IOException
is - The input stream.java.io.IOException - If the input encoding is incorrect or an I/O error occurred.public void output(java.io.OutputStream os)
throws java.io.IOException
os - The output stream.java.io.IOException - An I/O error occurred.public int length()
public java.lang.String toString()
toString in class java.lang.Object