|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.security.util.ConfigurationUtil
A collection of utility functions that assist with the configuration of
PolicyConfiguration
s.
PolicyConfiguration
,
"JSR 115" Java Authorization Contract for ContainersConstructor Summary | |
ConfigurationUtil()
|
Method Summary | |
static void |
configure(javax.security.jacc.PolicyConfiguration configuration,
org.apache.geronimo.xbeans.j2ee.EjbJarType ejbJar)
|
static void |
configure(javax.security.jacc.PolicyConfiguration configuration,
org.apache.geronimo.xbeans.j2ee.WebAppType webApp)
Translate the web deployment descriptors into equivalent security permissions. |
static PrimaryRealmPrincipal |
generatePrimaryRealmPrincipal(Principal principal,
String realmName)
Create a RealmPrincipal from a deployment description. |
static RealmPrincipal |
generateRealmPrincipal(Principal principal,
String realmName)
Create a RealmPrincipal from a deployment description. |
static void |
registerPolicyContextHandler(javax.security.jacc.PolicyContextHandler handler,
boolean replace)
A simple helper method to register PolicyContextHandlers |
static String[] |
toStringArray(org.apache.geronimo.xbeans.j2ee.JavaTypeType[] methodParamArray)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConfigurationUtil()
Method Detail |
public static RealmPrincipal generateRealmPrincipal(Principal principal, String realmName)
principal
- the deployment description of the principal to be created.realmName
- the security realm that the principal belongs go
public static PrimaryRealmPrincipal generatePrimaryRealmPrincipal(Principal principal, String realmName)
principal
- the deployment description of the principal to be created.realmName
- the security realm that the principal belongs go
public static void registerPolicyContextHandler(javax.security.jacc.PolicyContextHandler handler, boolean replace) throws javax.security.jacc.PolicyContextException
handler
- an object that implements the PolicyContextHandler
interface. The value of this parameter must not be null.replace
- this boolean value defines the behavior of this method
if, when it is called, a PolicyContextHandler
has already
been registered to handle the same key. In that case, and if the value
of this argument is true, the existing handler is replaced with the
argument handler. If the value of this parameter is false the existing
registration is preserved and an exception is thrown.
javax.security.jacc.PolicyContextException
public static void configure(javax.security.jacc.PolicyConfiguration configuration, org.apache.geronimo.xbeans.j2ee.WebAppType webApp) throws GeronimoSecurityException
PolicyConfiguration
object as defined in the JAAC spec.
webApp
- the deployment descriptor from which to obtain the
security constraints that are to be translated.
GeronimoSecurityException
- if there is any violation of the semantics of
the security descriptor or the state of the module configuration.PolicyConfiguration
,
"Java Authorization Contract for Containers", section 3.1.3public static void configure(javax.security.jacc.PolicyConfiguration configuration, org.apache.geronimo.xbeans.j2ee.EjbJarType ejbJar) throws GeronimoSecurityException
GeronimoSecurityException
public static String[] toStringArray(org.apache.geronimo.xbeans.j2ee.JavaTypeType[] methodParamArray)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |