org.openpermis.security
Class SecurityProviderInitializer

java.lang.Object
  extended by org.openpermis.security.SecurityProviderInitializer

public final class SecurityProviderInitializer
extends Object

Static hook to initialize the security provider from a Pico configuration.

Since:
0.3.0

Nested Class Summary
protected static class SecurityProviderInitializer.Initializer
          Initializer class that sets the actual security provider.
 
Field Summary
private static String JCE_CONFIGURATION
          JCE pico container configuration file name.
private static org.slf4j.Logger LOGGER
          The logger object of this class.
 
Constructor Summary
private SecurityProviderInitializer()
          Objects of this class cannot be instantiated.
 
Method Summary
static void initializeSecurityProvider()
          Reads the openpermis-jce.xml in the top level folder of the classpath and initializes the security provider according to its contents.
protected static void initializeSecurityProvider(SecurityProviderInitializer.Initializer initializer)
          Reads the openpermis-jce.xml in the top level folder of the classpath and initializes the security provider according to its contents.
protected static void initializeSecurityProvider(URL url, ClassLoader cl, SecurityProviderInitializer.Initializer initializer)
          Initializes the security provider using the configuration and class loader specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

private static final org.slf4j.Logger LOGGER
The logger object of this class.

Since:
0.3.0

JCE_CONFIGURATION

private static final String JCE_CONFIGURATION
JCE pico container configuration file name.

Constant Field Value:
"openpermis-jce.xml"
Since:
0.3.0
Constructor Detail

SecurityProviderInitializer

private SecurityProviderInitializer()
Objects of this class cannot be instantiated.

Since:
0.3.0
Method Detail

initializeSecurityProvider

public static void initializeSecurityProvider()
Reads the openpermis-jce.xml in the top level folder of the classpath and initializes the security provider according to its contents.

Since:
0.3.0

initializeSecurityProvider

protected static void initializeSecurityProvider(SecurityProviderInitializer.Initializer initializer)
Reads the openpermis-jce.xml in the top level folder of the classpath and initializes the security provider according to its contents.

Parameters:
initializer - the actual initializer to use.
Since:
0.3.0

initializeSecurityProvider

protected static void initializeSecurityProvider(URL url,
                                                 ClassLoader cl,
                                                 SecurityProviderInitializer.Initializer initializer)
Initializes the security provider using the configuration and class loader specified.

Parameters:
url - the configuration URL that points to a Pico XML configuration.
cl - the class loader to load the configuration classes from.
initializer - the actual initializer to use.
Since:
0.3.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG