org.apache.geronimo.security.deployment
Class GeronimoSecurityBuilderImpl

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

public class GeronimoSecurityBuilderImpl
extends Object
implements NamespaceDrivenBuilder, GBeanLifecycle


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)
           
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
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

doStart

public void doStart()
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle

doStop

public void doStop()
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface GBeanLifecycle

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-2008 The Apache Geronimo development community. All Rights Reserved.