org.apache.james.mailet.crypto
Class InitJCE
java.lang.Object
org.apache.james.mailet.crypto.InitJCE
public class InitJCE
- extends 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.
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 |
InitJCE
public InitJCE()
init
public static void init()
throws InstantiationException,
IllegalAccessException,
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:
InstantiationException
IllegalAccessException
ClassNotFoundException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.