| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private Class | |
| private CertStore | |
| private static final Class | |
| private static final String | |
| private String[] | |
| private static final String | |
| private Map | |
| private static final JcaX509CertSelectorConverter | |
| private static final int | |
| private SignerInformationStore | |
| private static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | SignedMailValidator(MimeMessage
the signed MimeMessage message, PKIXParameters the parameters for the certificate path validation param)Validates the signed |
| public | SignedMailValidator(MimeMessage
the signed MimeMessage message, PKIXParameters the parameters for the certificate path validation param, Class<T> a subclass of certPathReviewerClass)PKIXCertPathReviewer. The SignedMailValidator
uses objects of this type for the cert path vailidation. The class must
have an empty constructor.Validates the signed |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static String | |
| protected void | |
| public static CertPath | Returns: the resulting certificate path.the end of the path signerCert, Set<E> trust anchors for the path trustanchors, List<E> certStores)
|
| public static Object[] | Returns: a CertPath and a List of booleans.the end of the path signerCert, Set<E> trust anchors for the path trustanchors, List<E> list of systemCertStores, List<E> CertStore provided by the systemlist of userCertStores)CertStore provided by the userReturns an Object array containing a CertPath and a List of Booleans. |
| private static ErrorBundle | |
| private static ErrorBundle | |
| private static List | |
| private static X509Certificate | |
| public CertStore | |
| public static Set | |
| private static ASN1Primitive | |
| public static Date | |
| public SignerInformationStore | |
| private static TBSCertificate | |
| public SignedMailValidator. | |
| protected void |
| certPathReviewerClass | back to summary |
|---|---|
| private Class<T> certPathReviewerClass | |
| certs | back to summary |
|---|---|
| private CertStore certs | |
| DEFAULT_CERT_PATH_REVIEWER | back to summary |
|---|---|
| private static final Class<T> DEFAULT_CERT_PATH_REVIEWER | |
| EXT_KEY_USAGE | back to summary |
|---|---|
| private static final String EXT_KEY_USAGE | |
| fromAddresses | back to summary |
|---|---|
| private String[] fromAddresses | |
| RESOURCE_NAME | back to summary |
|---|---|
| private static final String RESOURCE_NAME | |
| results | back to summary |
|---|---|
| private Map<K, V> results | |
| selectorConverter | back to summary |
|---|---|
| private static final JcaX509CertSelectorConverter selectorConverter | |
| shortKeyLength | back to summary |
|---|---|
| private static final int shortKeyLength | |
| signers | back to summary |
|---|---|
| private SignerInformationStore signers | |
| SUBJECT_ALTERNATIVE_NAME | back to summary |
|---|---|
| private static final String SUBJECT_ALTERNATIVE_NAME | |
| THIRTY_YEARS_IN_MILLI_SEC | back to summary |
|---|---|
| private static final long THIRTY_YEARS_IN_MILLI_SEC | |
| SignedMailValidator | back to summary |
|---|---|
| public SignedMailValidator(MimeMessage message, PKIXParameters param) throws SignedMailValidatorException Validates the signed
| |
| SignedMailValidator | back to summary |
|---|---|
| public SignedMailValidator(MimeMessage message, PKIXParameters param, Class<T> certPathReviewerClass) throws SignedMailValidatorException Validates the signed
| |
| addressesToString | back to summary |
|---|---|
| pack-priv static String addressesToString(Object[] a) | |
| checkSignerCert | back to summary |
|---|---|
| protected void checkSignerCert(X509Certificate cert, List<E> errors, List<E> notifications) | |
| createCertPath | back to summary |
|---|---|
public static CertPath createCertPath(X509Certificate signerCert, Set<E> trustanchors, List<E> certStores) throws GeneralSecurityException
| |
| createCertPath | back to summary |
|---|---|
| public static Object[] createCertPath(X509Certificate signerCert, Set<E> trustanchors, List<E> systemCertStores, List<E> userCertStores) throws GeneralSecurityException Returns an Object array containing a CertPath and a List of Booleans. The list contains the value | |
| createErrorBundle | back to summary |
|---|---|
| private static ErrorBundle createErrorBundle(String id) | |
| createErrorBundle | back to summary |
|---|---|
| private static ErrorBundle createErrorBundle(String id, Object[] arguments) | |
| findCerts | back to summary |
|---|---|
| private static List | |
| findNextCert | back to summary |
|---|---|
| private static X509Certificate findNextCert(List<E> certStores, X509CertSelector selector, Set<E> certSet) throws CertStoreException | |
| getCertsAndCRLs | back to summary |
|---|---|
| public CertStore getCertsAndCRLs() | |
| getEmailAddresses | back to summary |
|---|---|
| public static Set | |
| getObject | back to summary |
|---|---|
| private static ASN1Primitive getObject(byte[] ext) throws IOException | |
| getSignatureTime | back to summary |
|---|---|
| public static Date getSignatureTime(SignerInformation signer) | |
| getSignerInformationStore | back to summary |
|---|---|
| public SignerInformationStore getSignerInformationStore() | |
| getTBSCert | back to summary |
|---|---|
| private static TBSCertificate getTBSCert(X509Certificate cert) throws CertificateEncodingException | |
| getValidationResult | back to summary |
|---|---|
| public SignedMailValidator. | |
| validateSignatures | back to summary |
|---|---|
| protected void validateSignatures(PKIXParameters pkixParam) | |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private List | |
| private PKIXCertPathReviewer | |
| private boolean | |
| private List |
| Access | Constructor and Description |
|---|---|
| pack-priv | ValidationResult(PKIXCertPathReviewer review, boolean verified, List<E> errors, List<E> notifications, List<E> userProvidedCerts)
|
| Modifier and Type | Method and Description |
|---|---|
| public CertPath | |
| public PKIXCertPathReviewer | Returns: the PKIXCertPathReviewer for the CertPath of this signature or null if an Exception occurred.
|
| public List | |
| public List | Returns: List of notification messagesReturns a list of notification messages of type |
| public List | Returns: a List of Booleans that are true if the corresponding certificate in the CertPath was taken from the CertStore of the SMIME message
|
| public boolean | Returns: true if the signature is valid (ie. if it corresponds to the public key of the signer and the cert path for the signers certificate is also valid)
|
| public boolean |
| errors | back to summary |
|---|---|
| private List<E> errors | |
| notifications | back to summary |
|---|---|
| private List<E> notifications | |
| review | back to summary |
|---|---|
| private PKIXCertPathReviewer review | |
| signVerified | back to summary |
|---|---|
| private boolean signVerified | |
| userProvidedCerts | back to summary |
|---|---|
| private List<E> userProvidedCerts | |
| ValidationResult | back to summary |
|---|---|
| pack-priv ValidationResult(PKIXCertPathReviewer review, boolean verified, List<E> errors, List<E> notifications, List<E> userProvidedCerts) | |
| getCertPath | back to summary |
|---|---|
public CertPath getCertPath()
| |
| getCertPathReview | back to summary |
|---|---|
public PKIXCertPathReviewer getCertPathReview()
| |
| getErrors | back to summary |
|---|---|
| public List Returns a list of error messages of type
| |
| getNotifications | back to summary |
|---|---|
| public List Returns a list of notification messages of type
| |
| getUserProvidedCerts | back to summary |
|---|---|
public List
| |
| isValidSignature | back to summary |
|---|---|
public boolean isValidSignature()
| |
| isVerifiedSignature | back to summary |
|---|---|
public boolean isVerifiedSignature()
| |