org.apache.geronimo.security.deployment
Class GeronimoSecurityBuilderImpl

java.lang.Object
  extended by org.apache.geronimo.security.deployment.GeronimoSecurityBuilderImpl
All Implemented Interfaces:
AbstractNamespaceBuilder, NamespaceDrivenBuilder

public class GeronimoSecurityBuilderImpl
extends Object
implements NamespaceDrivenBuilder


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
GeronimoSecurityBuilderImpl(AbstractNameQuery credentialStoreName)
           
 
Method Summary
 void build(org.apache.xmlbeans.XmlObject container, DeploymentContext applicationContext, DeploymentContext moduleContext)
           
 void buildEnvironment(org.apache.xmlbeans.XmlObject container, Environment environment)
           
 PrincipalInfo buildPrincipal(org.apache.xmlbeans.XmlObject xmlObject)
           
static void buildRolePrincipalMap(Security security, Map<String,Set<Principal>> roleToPrincipalMap, ClassLoader classLoader)
          non-interface, used in some jetty/tomcat tests
protected  GBeanData configureApplicationPolicyManager(Naming naming, AbstractName moduleName, Map contextIDToPermissionsMap, SecurityConfiguration securityConfiguration, AbstractNameQuery credentialStoreName)
           
protected  GBeanData configureRoleMapper(Naming naming, AbstractName moduleName, SecurityConfiguration securityConfiguration)
           
static GBeanInfo getGBeanInfo()
           
 org.apache.xmlbeans.QNameSet getPlanQNameSet()
           
 org.apache.xmlbeans.QNameSet getSpecQNameSet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

GeronimoSecurityBuilderImpl

public GeronimoSecurityBuilderImpl(AbstractNameQuery credentialStoreName)
Method Detail

buildEnvironment

public void buildEnvironment(org.apache.xmlbeans.XmlObject container,
                             Environment environment)
                      throws DeploymentException
Specified by:
buildEnvironment in interface NamespaceDrivenBuilder
Throws:
DeploymentException

build

public void build(org.apache.xmlbeans.XmlObject container,
                  DeploymentContext applicationContext,
                  DeploymentContext moduleContext)
           throws DeploymentException
Specified by:
build in interface NamespaceDrivenBuilder
Throws:
DeploymentException

buildRolePrincipalMap

public static void buildRolePrincipalMap(Security security,
                                         Map<String,Set<Principal>> roleToPrincipalMap,
                                         ClassLoader classLoader)
non-interface, used in some jetty/tomcat tests

Parameters:
security - Security object holding security info as it is extracted
roleToPrincipalMap - role to set of Principals mapping
classLoader - application classloader in case we need to load some principal classes.

buildPrincipal

public PrincipalInfo buildPrincipal(org.apache.xmlbeans.XmlObject xmlObject)

configureRoleMapper

protected GBeanData configureRoleMapper(Naming naming,
                                        AbstractName moduleName,
                                        SecurityConfiguration securityConfiguration)

configureApplicationPolicyManager

protected GBeanData configureApplicationPolicyManager(Naming naming,
                                                      AbstractName moduleName,
                                                      Map contextIDToPermissionsMap,
                                                      SecurityConfiguration securityConfiguration,
                                                      AbstractNameQuery credentialStoreName)

getSpecQNameSet

public org.apache.xmlbeans.QNameSet getSpecQNameSet()
Specified by:
getSpecQNameSet in interface AbstractNamespaceBuilder

getPlanQNameSet

public org.apache.xmlbeans.QNameSet getPlanQNameSet()
Specified by:
getPlanQNameSet in interface AbstractNamespaceBuilder

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.