java.lang.Object | |
↳ | org.bouncycastle.mail.smime.validator.SignedMailValidator |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SignedMailValidator.ValidationResult |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Validates the signed MimeMessage message.
| |||||||||||
Validates the signed MimeMessage message.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an Object array containing a CertPath and a List of Booleans.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
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.
message | the signed MimeMessage |
---|---|
param | the parameters for the certificate path validation |
SignedMailValidatorException | if the message is no signed message or if an exception occurs reading the message |
---|
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.
message | the signed MimeMessage |
---|---|
param | the parameters for the certificate path validation |
certPathReviewerClass | a subclass of PKIXCertPathReviewer. The SignedMailValidator uses objects of this type for the cert path vailidation. The class must have an empty constructor. |
SignedMailValidatorException | if the message is no signed message or if an exception occurs reading the message |
---|---|
IllegalArgumentException | if the certPathReviewerClass is not a subclass of PKIXCertPathReviewer or objects of certPathReviewerClass can not be instantiated |
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.
signerCert | the end of the path |
---|---|
trustanchors | trust anchors for the path |
systemCertStores | list of CertStore provided by the system |
userCertStores | list of CertStore provided by the user |
GeneralSecurityException |
---|
signerCert | the end of the path |
---|---|
trustanchors | trust anchors for the path |
GeneralSecurityException |
---|
SignedMailValidatorException |
---|