|
Oracle Security Developer Tools S/MIME Java API Reference 10g Release 2 (10.1.2.0.2) B15567-01 |
|||||||||
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
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(oracle.security.crypto.cert.X509 cert) Create a new SigningCertificate object. |
|
SigningCertificate(oracle.security.crypto.cert.X509 cert, java.util.Vector policy) Create a new SigningCertificate object. |
|
SigningCertificate(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert, boolean addIssuerSerial) Create a new SigningCertificateAttribute object. |
|
SigningCertificate(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert, boolean useIssuerSerial, java.util.Vector policy) Create a new SigningCertificateAttribute object. |
Method Summary | |
void |
addCertificate(oracle.security.crypto.cert.X509 cert) Adds a certificate to this signing certificate attribute object. |
void |
addCertificate(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 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(oracle.security.crypto.cert.X509 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(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 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(oracle.security.crypto.cert.X509 cert) Verifies if the certificate which was used to verify the signature is identical to the one used to create the signature. |
void |
verifySignerCertificate(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 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(oracle.security.crypto.cert.X509 cert) throws AlgorithmIdentifierException
SigningCertificate
object.cert
- The X509 signer certificate.AlgorithmIdentifierException
- An error occurred during certificate hash generation.public SigningCertificate(oracle.security.crypto.cert.X509 cert, java.util.Vector policy) throws AlgorithmIdentifierException
SigningCertificate
object.cert
- The X509 signer certificate.policy
- The policies (X509PolicyInformation
) that the signer asserts.AlgorithmIdentifierException
- An error occurred during certificate hash generation.public SigningCertificate(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert, boolean addIssuerSerial) throws AlgorithmIdentifierException
SigningCertificateAttribute
object.cert
- The X509 certificate.addIssuerSerial
- If true
, the issuer/serial number is used.AlgorithmIdentifierException
- An error occurred during certificate hash generation.public SigningCertificate(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert, boolean useIssuerSerial, java.util.Vector policy) throws AlgorithmIdentifierException
SigningCertificateAttribute
object.cert
- The X509 signer certificate.useIssuerSerial
- If true
, the issuer/serial number is used.policy
- The policies (X509PolicyInformation
) that the signer asserts.AlgorithmIdentifierException
- An error occurred during certificate hash generation.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 InvalidInputException
SigningCertificateAttribute
object.si
- The message signer (CMSSignerInfo
).InvalidInputException
- If the attribute is not present or it is multi valued or its encoding is incorrect.Method Detail |
public void addCertificate(oracle.security.crypto.cert.X509 cert) throws AlgorithmIdentifierException
AlgorithmIdentifierException
public void addCertificate(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert, boolean issuerSerial) throws AlgorithmIdentifierException
AlgorithmIdentifierException
public void addPolicy(oracle.security.crypto.cert.X509PolicyInformation policy)
public java.util.Enumeration certIDs()
ESSCertID
objects.public java.util.Enumeration policies()
X509PolicyInformation
objects.public java.lang.String toString()
public boolean equals(java.lang.Object o)
true
this object is equal to the specified object; false
otherwise.public int hashCode()
public void verifySignerCertificate(oracle.security.crypto.cert.X509 cert) throws AuthenticationException
cert
- The certificate used to verify the signature.AuthenticationException
- If the certificate used to verify the signature does not correspond to the one used to create the signature.public void verifySignerCertificate(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert) throws AuthenticationException
cert
- The certificate used to verify the signature.caCert
- The issuer's certificate used to verify the signature.AuthenticationException
- If the certificate used to verify the signature does not correspond to the one used to create the signature.public void verifyAuthorizationCertificate(oracle.security.crypto.cert.X509 cert) throws AuthenticationException
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 attributepublic void verifyAuthorizationCertificate(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert) throws AuthenticationException
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 attributepublic void input(java.io.InputStream is) throws java.io.IOException
is
- The input stream.java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
os
- The output stream.java.io.IOException
public int length()
|
Oracle Security Developer Tools S/MIME Java API Reference 10g Release 2 (10.1.2.0.2) B15567-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |