| java.lang.Object org.bouncycastle.mail.smime.validator.SignedMailValidator
SignedMailValidator | public class SignedMailValidator (Code) | | |
Inner Class :public class ValidationResult | |
SignedMailValidator | public SignedMailValidator(MimeMessage message, PKIXParameters param) throws SignedMailValidatorException(Code) | | Validates the signed
MimeMessage message. The
PKIXParameters from param are used for the certificate path
validation. The actual PKIXParameters used for the certificate path
validation is a copy of param with the followin changes: - The
validation date is changed to the signature time - A CertStore with
certificates and crls from the mail message is added to the CertStores.
In param it's also possible to add additional CertStores
with intermediate Certificates and/or CRLs which then are also used for
the validation.
Parameters: message - the signed MimeMessage Parameters: param - the parameters for the certificate path validation throws: SignedMailValidatorException - if the message is no signed message or if an exception occursreading the message |
SignedMailValidator | public SignedMailValidator(MimeMessage message, PKIXParameters param, Class certPathReviewerClass) throws SignedMailValidatorException(Code) | | Validates the signed
MimeMessage message. The
PKIXParameters from param are used for the certificate path
validation. The actual PKIXParameters used for the certificate path
validation is a copy of param with the followin changes: - The
validation date is changed to the signature time - A CertStore with
certificates and crls from the mail message is added to the CertStores.
In param it's also possible to add additional CertStores
with intermediate Certificates and/or CRLs which then are also used for
the validation.
Parameters: message - the signed MimeMessage Parameters: param - the parameters for the certificate path validation Parameters: certPathReviewerClass - a subclass of PKIXCertPathReviewer. The SignedMailValidatoruses objects of this type for the cert path vailidation. The class musthave an empty constructor. throws: SignedMailValidatorException - if the message is no signed message or if an exception occursreading the message throws: IllegalArgumentException - if the certPathReviewerClass is not a subclass of PKIXCertPathReviewer or objects of certPathReviewerClass can not be instantiated |
createCertPath | public static Object[] createCertPath(X509Certificate signerCert, Set trustanchors, List systemCertStores, List userCertStores) throws GeneralSecurityException(Code) | | Returns an Object array containing a CertPath and a List of Booleans. The list contains the value true
if the corresponding certificate in the CertPath was taken from the user provided CertStores.
Parameters: signerCert - the end of the path Parameters: trustanchors - trust anchors for the path Parameters: systemCertStores - list of CertStore provided by the system Parameters: userCertStores - list of CertStore provided by the user a CertPath and a List of booleans. throws: GeneralSecurityException - |
|
|