|
Oracle Security Developer Tools S/MIME Java API Reference 11g (11.1.1) E10672-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.smime.ess.SigningCertificate
public class SigningCertificate
An ESS Signing Certificate.
| Constructor Summary | |
|---|---|
SigningCertificate(oracle.security.crypto.cms.CMSSignerInfo si)Create a new SigningCertificateAttribute object. |
|
SigningCertificate(java.io.InputStream is)Create a new SigningCertificateAttribute object. |
|
SigningCertificate(java.security.cert.X509Certificate cert)Create a new SigningCertificate object. |
|
SigningCertificate(java.security.cert.X509Certificate cert, java.util.Vector policy)Create a new SigningCertificate object. |
|
SigningCertificate(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert, boolean addIssuerSerial)Create a new SigningCertificateAttribute object. |
|
SigningCertificate(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert, boolean useIssuerSerial, java.util.Vector policy)Create a new SigningCertificateAttribute object. |
|
| Method Summary | |
|---|---|
void |
addCertificate(java.security.cert.X509Certificate cert)Adds a certificate to this signing certificate attribute object. |
void |
addCertificate(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert, boolean issuerSerial)Adds a certificate to this signing certificate attribute object. |
void |
addPolicy(oracle.security.crypto.cert.X509PolicyInformation policy)Adds a policy information to this signing certificate attribute object |
java.util.Enumeration |
certIDs()Returns the list of certificate identifiers. |
boolean |
equals(java.lang.Object o)Indicates if the object equals the specified object. |
int |
hashCode()Return the hash code for this object. |
void |
input(java.io.InputStream is)Initialized this object by reading the 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 |
policies()Returns the list of policies asserted by the signer. |
java.lang.String |
toString()Returns a string representation of this object. |
void |
verifyAuthorizationCertificate(java.security.cert.X509Certificate cert)Verifies if a certificate is in the signing certificate attribute, and compare the result of its hash to the value in the signing certificate attribute. |
void |
verifyAuthorizationCertificate(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert)Verifies if a certificate is in the signing certificate attribute, and compare the result of its hash to the value in the signing certificate attribute. |
void |
verifySignerCertificate(java.security.cert.X509Certificate cert)Verifies if the certificate which was used to verify the signature is identical to the one used to create the signature. |
void |
verifySignerCertificate(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert)Verifies if the certificate which was used to verify the signature is identical to the one used to create the signature. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SigningCertificate(java.security.cert.X509Certificate cert)
throws java.security.NoSuchAlgorithmException,
java.security.cert.CertificateEncodingException
SigningCertificate object.
Note the changes in the method signature
Previously : public SigningCertificate (X509 )
Now : public SigningCertificate (X509Certificate )
Note the changes in the exceptions
Exceptions no longer thrown : AlgorithmIdentifierException
Exceptions introduced : NoSuchAlgorithmException,CertificateEncodingException
cert - The X509 signer certificate.java.security.NoSuchAlgorithmException - An error occurred during certificate hash generation.java.security.cert.CertificateEncodingException - An error occured during certificate encoding
public SigningCertificate(java.security.cert.X509Certificate cert,
java.util.Vector policy)
throws java.security.NoSuchAlgorithmException,
java.security.cert.CertificateEncodingException
SigningCertificate object.
Note the changes in the method signature
Previously : public SigningCertificate (X509 ,Vector)
Now : public SigningCertificate (X509Certificate ,Vector)
Note the changes in the exceptions
Exceptions no longer thrown : AlgorithmIdentifierException
Exceptions introduced : NoSuchAlgorithmException,CertificateEncodingException
cert - The X509 signer certificate.policy - The policies (X509PolicyInformation) that the signer asserts.java.security.NoSuchAlgorithmException - An error occurred during certificate hash generation.java.security.cert.CertificateEncodingException - An error occured during certificate encoding
public SigningCertificate(java.security.cert.X509Certificate cert,
java.security.cert.X509Certificate caCert,
boolean addIssuerSerial)
throws java.security.NoSuchAlgorithmException,
java.security.cert.CertificateEncodingException
SigningCertificateAttribute object.
Note the changes in the method signature
Previously : public SigningCertificate (X509, X509, boolean)
Now : public SigningCertificate (X509Certificate, X509Certificate, boolean)
Note the changes in the exceptions
Exceptions no longer thrown : AlgorithmIdentifierException
Exceptions introduced : NoSuchAlgorithmException,CertificateEncodingException
cert - The X509 certificate.cert - The issuer's X509 certificate.addIssuerSerial - If true, the issuer/serial number is used.java.security.NoSuchAlgorithmException - An error occurred during certificate hash generation.java.security.cert.CertificateEncodingException - An error occured during certificate encoding
public SigningCertificate(java.security.cert.X509Certificate cert,
java.security.cert.X509Certificate caCert,
boolean useIssuerSerial,
java.util.Vector policy)
throws java.security.cert.CertificateEncodingException,
java.security.NoSuchAlgorithmException
SigningCertificateAttribute object.
Note the changes in the method signature
Previously : public SigningCertificate (X509, X509, boolean,Vector)
Now : public SigningCertificate (X509Certificate, X509Certificate, boolean,Vector)
Note the changes in the exceptions
Exceptions no longer thrown : AlgorithmIdentifierException
Exceptions introduced : NoSuchAlgorithmException,CertificateEncodingException
cert - The X509 signer certificate.cert - The issuer's X509 certificate.useIssuerSerial - If true, the issuer/serial number is used.policy - The policies (X509PolicyInformation) that the signer asserts.java.security.NoSuchAlgorithmException - An error occurred during certificate hash generation.java.security.cert.CertificateEncodingException - An error occured during certificate encoding
public SigningCertificate(java.io.InputStream is)
throws java.io.IOException
SigningCertificateAttribute object.
is - The input stream.java.io.IOException - If the input is not correctly formatted or an I/O exception occurs while reading from the input stream.
public SigningCertificate(oracle.security.crypto.cms.CMSSignerInfo si)
throws oracle.security.crypto.util.InvalidInputException
SigningCertificateAttribute object.
si - The message signer (CMSSignerInfo).oracle.security.crypto.util.InvalidInputException - If the attribute is not present or it is multi valued or its encoding is incorrect.| Method Detail |
|---|
public void addCertificate(java.security.cert.X509Certificate cert)
throws java.security.NoSuchAlgorithmException,
java.security.cert.CertificateEncodingException
Note the changes in the method signature
Previously : public void addCertificate(X509 )
Now : public void addCertificate(X509Certificate )
Note the changes in the exceptions
Exceptions no longer thrown : AlgorithmIdentifierException
Exceptions introduced : NoSuchAlgorithmException,CertificateEncodingException
X509 - The certificate to add.java.security.NoSuchAlgorithmException - An error occurred during certificate hash generation.java.security.cert.CertificateEncodingException - An error occured during certificate encoding
public void addCertificate(java.security.cert.X509Certificate cert,
java.security.cert.X509Certificate caCert,
boolean issuerSerial)
throws java.security.NoSuchAlgorithmException,
java.security.cert.CertificateEncodingException
Note the changes in the method signature
Previously : public void addCertificate(X509, X509, boolean)
Now : public void addCertificate(X509Certificate , X509Certificate, boolean)
Note the changes in the exceptions
Exceptions no longer thrown : AlgorithmIdentifierException
Exceptions introduced : NoSuchAlgorithmException,CertificateEncodingException
X509Certificate - The certificate to add.java.security.NoSuchAlgorithmException - An error occurred during certificate hash generation.java.security.cert.CertificateEncodingException - An error occured during certificate encodingpublic void addPolicy(oracle.security.crypto.cert.X509PolicyInformation policy)
X509PolicyInformation - the policy to addpublic java.util.Enumeration certIDs()
ESSCertID objects.public java.util.Enumeration policies()
X509PolicyInformation objects.public java.lang.String toString()
toString in class java.lang.Objectpublic 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.Object
public void verifySignerCertificate(java.security.cert.X509Certificate cert)
throws oracle.security.crypto.core.AuthenticationException
cert - The certificate used to verify the signature.
Note the changes in the method signature
Previously : public void verifySignerCertificate(X509)
Now : public void verifySignerCertificate(X509Certificate )
oracle.security.crypto.core.AuthenticationException - If the certificate used to verify the signature does not correspond to the one used to create the signature.
public void verifySignerCertificate(java.security.cert.X509Certificate cert,
java.security.cert.X509Certificate caCert)
throws oracle.security.crypto.core.AuthenticationException
cert - The certificate used to verify the signature.
Note the changes in the method signature
Previously : public void verifySignerCertificate(X509, X509)
Now : public void verifySignerCertificate(X509Certificate , X509Certificate )
cert - The certificate used to verify the signature.caCert - The issuer's certificate used to verify the signature.oracle.security.crypto.core.AuthenticationException - If the certificate used to verify the signature does not correspond to the one used to create the signature.
public void verifyAuthorizationCertificate(java.security.cert.X509Certificate cert)
throws oracle.security.crypto.core.AuthenticationException
Note the changes in the method signature
Previously : public void verifyAuthorizationCertificate(X509)
Now : public void verifyAuthorizationCertificate(X509Certificate )
cert - the certificate to verifyoracle.security.crypto.core.AuthenticationException - if the certificate is not in the signing certificate attribute or if its hash function is different from the one in ths signing certificate attribute
public void verifyAuthorizationCertificate(java.security.cert.X509Certificate cert,
java.security.cert.X509Certificate caCert)
throws oracle.security.crypto.core.AuthenticationException
Previously : public void verifyAuthorizationCertificate(X509, X509)
Now : public void verifyAuthorizationCertificate(X509Certificate ,X509Certificate )
X509 - the certificate to verifyoracle.security.crypto.core.AuthenticationException - if the certificate is not in the signing certificate attribute or if its hash function is different from the one in ths signing certificate attribute
public void input(java.io.InputStream is)
throws java.io.IOException
input in interface oracle.security.crypto.util.Streamableis - The input stream.java.io.IOException
public void output(java.io.OutputStream os)
throws java.io.IOException
output in interface oracle.security.crypto.util.Streamableos - The output stream.java.io.IOExceptionpublic int length()
length in interface oracle.security.crypto.util.Streamable
|
Oracle Security Developer Tools S/MIME Java API Reference 11g (11.1.1) E10672-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||