6-4 Oracle Fusion Middleware Reference for Oracle Security Developer Tools
6.3.1.1 The oracle.security.crypto.smime.SmimeObject Interface
The oracle.security.crypto.smime.SmimeObject interface represents an SMIME object. Classes that implement this interface include:
■
SmimeSigned
■
SmimeEnveloped
■
SmimeMultipartSigned
■
SmimeSignedReceipt
■
SmimeCompressed Methods in this interface include:
String generateContentType Returns the content type string for this SMIME object. For example:
applicationpkcs7-mime; smime-type=signed-data String generateContentType boolean useStandardContentTypes
If the argument is true, returns the same as generateContentType; if false, returns old-style Netscape content type string. For example:
applicationx-pkcs7-mime; smime-type=signed-data
void writeTo java.io.OutputStream os, java.lang.String mimeType Outputs this object to the specified output stream.
6.3.1.2 The oracle.security.crypto.smime.SmimeSignedObject Interface
The oracle.security.crypto.smime.SmimeSignedObject interface extends SmimeObject, and specifies methods common to all SMIME signed objects,
including SmimeSigned and SmimeMultipartSigned.
Methods in this interface include: Vector getCertificates
Returns the list of certificates included in this SMIME objects signed content. Vector getCRLs
Returns the list of certificate revocation lists in the SMIME objects signed content. javax.mail.internet.MimeBodyPart getEnclosedBodyPart
Returns the document which was signed. oracle.security.crypto.smime.ess.EquivalentLabels getEquivalentLabels
java.security.cert.X509Certificate signerCert Returns the EquivalentLabels if present or null.
oracle.security.crypto.smime.ess.ESSSecurityLabel getESSSecurityLabel java.security.cert.X509Certificate signerCert
Returns the ESSSecurityLabel if present or null. oracle.security.crypto.smime.ess.MLExpansionHistory getMLExpansionHistory
java.security.cert.X509Certificate signerCert Returns the MLExpansionHistory attribute if present or null.
oracle.security.crypto.smime.ess.ReceiptRequest getReceiptRequest java.security.cert.X509Certificate signerCert
Returns the ReceiptRequest attribute if present or null. oracle.security.crypto.smime.ess.SigningCertificate getSigningCertificate
java.security.cert.X509Certificate signerCert Returns the SigningCertificate.
Oracle SMIME 6-5
void verify oracle.security.crypto.cert.CertificateTrustPolicy trustPolicy Returns normally if the signed contents include at least one valid signature according
to the specified trust policy, otherwise throws an AuthenticationException.
void verifySignature java.security.cert.X509Certificate signerCert Returns normally if the signed contents contain a signature which can be validated by
the given certificate, otherwise throws an AuthenticationException.
The method can throw a SignatureException, if no signature exists corresponding to the given certificate.
6.3.1.3 The oracle.security.crypto.smime.SmimeSigned Class