chapter9
Class SignedDataProcessor

java.lang.Object
  extended by chapter9.SignedDataProcessor
Direct Known Subclasses:
EnvelopedSignedMailExample, SignedDataExample, SignedMailExample, SignedMultiPartMailExample

public class SignedDataProcessor
extends java.lang.Object

Base class for signed examples.


Constructor Summary
SignedDataProcessor()
           
 
Method Summary
static boolean isValid(org.bouncycastle.cms.CMSSignedData signedData, java.security.cert.X509Certificate rootCert)
          Take a CMS SignedData message and a trust anchor and determine if the message is signed with a valid signature from a end entity entity certificate recognized by the trust anchor rootCert.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignedDataProcessor

public SignedDataProcessor()
Method Detail

isValid

public static boolean isValid(org.bouncycastle.cms.CMSSignedData signedData,
                              java.security.cert.X509Certificate rootCert)
                       throws java.lang.Exception
Take a CMS SignedData message and a trust anchor and determine if the message is signed with a valid signature from a end entity entity certificate recognized by the trust anchor rootCert.

Throws:
java.lang.Exception


Examples from "Beginning Cryptography with Java"