chapter9
Class SignedMailExample

java.lang.Object
  extended by chapter9.SignedDataProcessor
      extended by chapter9.SignedMailExample

public class SignedMailExample
extends SignedDataProcessor

a simple example that creates and processes a signed mail message.


Constructor Summary
SignedMailExample()
           
 
Method Summary
static javax.mail.internet.MimeMultipart createMultipartWithSignature(java.security.PrivateKey key, java.security.cert.X509Certificate cert, java.security.cert.CertStore certsAndCRLs, javax.mail.internet.MimeBodyPart dataPart)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class chapter9.SignedDataProcessor
isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignedMailExample

public SignedMailExample()
Method Detail

createMultipartWithSignature

public static javax.mail.internet.MimeMultipart createMultipartWithSignature(java.security.PrivateKey key,
                                                                             java.security.cert.X509Certificate cert,
                                                                             java.security.cert.CertStore certsAndCRLs,
                                                                             javax.mail.internet.MimeBodyPart dataPart)
                                                                      throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Examples from "Beginning Cryptography with Java"