org.apache.james.security
Class InitJCE

java.lang.Object
  extended by org.apache.james.security.InitJCE

public class InitJCE
extends java.lang.Object

Security Providers initialization class. The first call of the init method will have the class loader do the job. This technique ensures proper initialization without the need of maintaining the ${java_home}/lib/security/java.security file, that would otherwise need the addition of the following line: security.provider.n=org.bouncycastle.jce.provider.BouncyCastleProvider. The call also registers to the javamail's MailcapCommandMap the content handlers that are needed to work with s/mime mails.


Constructor Summary
InitJCE()
           
 
Method Summary
static void init()
          Method that registers the security provider BouncyCastle as a system security provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitJCE

public InitJCE()
Method Detail

init

public static void init()
                 throws java.lang.InstantiationException,
                        java.lang.IllegalAccessException,
                        java.lang.ClassNotFoundException
Method that registers the security provider BouncyCastle as a system security provider. The provider class is dinamically loaded on runtime so there is no need to include the bouncycastle jar in the James distribution. It can be downloaded and installed by the user if she needs it.

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException


Copyright © 2008 The Apache Software Foundation. All Rights Reserved.