public class

ValidateSignedMail

extends Object
java.lang.Object
   ↳ org.bouncycastle.mail.smime.examples.ValidateSignedMail

Class Overview

An Example that reads a signed mail and validates its signature. Also validating the certificate path from the signers key to a trusted entity

Summary

Constants
int DETAIL
int SUMMARY
int TEXT
int TITLE
boolean useCaCerts
Public Constructors
ValidateSignedMail()
Public Methods
static void main(String[] args)
static void verifySignedMail(MimeMessage msg, PKIXParameters param)
Protected Methods
static TrustAnchor getTrustAnchor(String trustcert)
static X509CRL loadCRL(String crlfile)
static X509Certificate loadCert(String certfile)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int DETAIL

Constant Value: 3 (0x00000003)

public static final int SUMMARY

Constant Value: 2 (0x00000002)

public static final int TEXT

Constant Value: 1 (0x00000001)

public static final int TITLE

Constant Value: 0 (0x00000000)

public static final boolean useCaCerts

Constant Value: false

Public Constructors

public ValidateSignedMail ()

Public Methods

public static void main (String[] args)

Throws
Exception

public static void verifySignedMail (MimeMessage msg, PKIXParameters param)

Throws
Exception

Protected Methods

protected static TrustAnchor getTrustAnchor (String trustcert)

Throws
Exception

protected static X509CRL loadCRL (String crlfile)

protected static X509Certificate loadCert (String certfile)