|
Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10667-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cms.ESSCertID
public class ESSCertID
Represents the ESSCertID of a certificate which is used in the Signing Certificate Attribute.
Constructor Summary | |
---|---|
ESSCertID(java.io.InputStream is) Creates a new ESSCertID by reading from the input stream. |
|
ESSCertID(java.security.cert.X509Certificate cert) Creates a new ESSCertID for the specified certificate. |
|
ESSCertID(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert, boolean issuerSerial) Creates a new ESSCertID for the specified certificate. |
Method Summary | |
---|---|
boolean |
compareTo(java.security.cert.X509Certificate cert) Compare this object with the ESSCertID object created from the given certificate. |
boolean |
compareTo(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert) Compare this object with the ESSCertID object created from the two given certificates. |
boolean |
containsIssuerSerial() Indicates if the IssuerSerial is present. |
boolean |
equals(java.lang.Object o) Compares this ESSCertID object to the given object. |
byte[] |
getCertHash() Returns the hash of the certificate represented by this ESSCertID object. |
oracle.security.crypto.cert.GeneralNames |
getGeneralNames() Returns the list of the General Names of the issuer of the certificate represented by this ESSCertID object. |
java.math.BigInteger |
getSerialNo() Returns the serial number of the of the certificate represented by this ESSCertID object. |
int |
hashCode() Returns the hash code of this object. |
void |
input(java.io.InputStream is) Initialize this object by reading the ESSCertID 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 ESSCertID(java.security.cert.X509Certificate cert) throws java.security.NoSuchAlgorithmException, java.security.cert.CertificateEncodingException
ESSCertID
for the specified certificate.
Note the changes in the method signature
Previously public ESSCertID( X509 )
Now public ESSCertID(X509Certificate)
Note the changes in the exceptions thrown
Exceptions no longer thrown -- AlgorithmIdentifierException
Exceptions introduced -- NoSuchAlgorithmException,CertificateEncodingException
cert
- The X509 certificate.java.security.NoSuchAlgorithmException
- An error occurred during certificate hash generation.java.security.cert.CertificateEncodingException
- Error while encoding the certificatepublic ESSCertID(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert, boolean issuerSerial) throws java.security.NoSuchAlgorithmException, java.security.cert.CertificateEncodingException
ESSCertID
for the specified certificate.
Note the changes in the method signature
Previously public ESSCertID( X509 , X509 , boolean )
Now public ESSCertID(X509Certificate , X509Certificate , boolean)
Note the changes in the exceptions thrown
Exceptions no longer thrown -- AlgorithmIdentifierException
Exceptions introduced -- NoSuchAlgorithmException,CertificateEncodingException
cert
- The X509 certificate.caCert
- The issuer's X509 certificate.issuerSerial
- If true
, the issuerSerial of the certificate is added.java.security.NoSuchAlgorithmException
- An error occurred during certificate hash generation.java.security.cert.CertificateEncodingException
- Error while encoding the certificatepublic ESSCertID(java.io.InputStream is) throws java.io.IOException
ESSCertID
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.IOException
Method Detail |
---|
public byte[] getCertHash()
public oracle.security.crypto.cert.GeneralNames getGeneralNames()
GeneralName
objects if present or null
otherwise.public java.math.BigInteger getSerialNo()
null
otherwise.public boolean compareTo(java.security.cert.X509Certificate cert) throws java.security.NoSuchAlgorithmException, java.security.cert.CertificateEncodingException
Note the changes in the method signature
Previouslypublic boolean compareTo (X509 )
Now public boolean compareTo (X509Certificate )
Note the changes in the exceptions thrown
Exceptions no longer thrown -- AlgorithmIdentifierException
Exceptions introduced -- NoSuchAlgorithmException,CertificateEncodingException
cert
- A X509 certificate.true
if this object was made from the specified certificate; false
otherwise.java.security.NoSuchAlgorithmException
- An error occurred during certificate hash generation.java.security.cert.CertificateEncodingException
- Error while encoding the certificatepublic boolean compareTo(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert) throws java.security.NoSuchAlgorithmException, java.security.cert.CertificateEncodingException
Note the changes in the method signature
Previouslypublic boolean compareTo (X509 ,X509)
Now public boolean compareTo (X509Certificate ,X509Certificate )
Note the changes in the exceptions thrown
Exceptions no longer thrown -- AlgorithmIdentifierException,IOException
Exceptions introduced -- NoSuchAlgorithmException,CertificateEncodingException
cert
- A X509 certificate.caCert
- The issuer's certificate.true
if this object was made from these two certificates; false
otherwise.java.security.NoSuchAlgorithmException
- An error occurred during certificate hash generation.java.security.cert.CertificateEncodingException
- Error while encoding the certificatepublic boolean containsIssuerSerial()
true
if the IssuerSerial is present;false
otherwise.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
true
if the objects are the same, false otherwise.public int hashCode()
hashCode
in class java.lang.Object
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 CMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10667-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |