org.apache.geronimo.security.jacc
Class ApplicationPolicyConfigurationManager

java.lang.Object
  extended by org.apache.geronimo.security.jacc.ApplicationPolicyConfigurationManager
All Implemented Interfaces:
GBeanLifecycle, RunAsSource

public class ApplicationPolicyConfigurationManager
extends Object
implements GBeanLifecycle, RunAsSource

Version:
$Rev: 939982 $ $Date: 2010-05-01 19:51:06 +0800 (Sat, 01 May 2010) $

Field Summary
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from interface org.apache.geronimo.security.jacc.RunAsSource
NULL
 
Constructor Summary
ApplicationPolicyConfigurationManager(Map<String,ComponentPermissions> contextIdToPermissionsMap, PrincipalRoleMapper principalRoleMapper, ClassLoader cl)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 Subject getDefaultSubject()
           
static GBeanInfo getGBeanInfo()
           
 Subject getSubjectForRole(String role)
          If role is null, return null.
 void updateApplicationPolicyConfiguration(Map<String,ComponentPermissions> contextIdToPermissionsMap)
           
 
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

ApplicationPolicyConfigurationManager

public ApplicationPolicyConfigurationManager(Map<String,ComponentPermissions> contextIdToPermissionsMap,
                                             PrincipalRoleMapper principalRoleMapper,
                                             ClassLoader cl)
                                      throws javax.security.jacc.PolicyContextException,
                                             ClassNotFoundException,
                                             LoginException
Throws:
javax.security.jacc.PolicyContextException
ClassNotFoundException
LoginException
Method Detail

getDefaultSubject

public Subject getDefaultSubject()
Specified by:
getDefaultSubject in interface RunAsSource
Returns:
the non-null default subject for this security environment

getSubjectForRole

public Subject getSubjectForRole(String role)
Description copied from interface: RunAsSource
If role is null, return null. Otherwise return a non-null Subject or throw an IllegalArgumentException.

Specified by:
getSubjectForRole in interface RunAsSource
Parameters:
role - role to estabilish identity for
Returns:
non-null Subject embodying the identity for the supplied non-null role, or null if role is null.

doStart

public void doStart()
             throws Exception
Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface GBeanLifecycle

updateApplicationPolicyConfiguration

public void updateApplicationPolicyConfiguration(Map<String,ComponentPermissions> contextIdToPermissionsMap)
                                          throws javax.security.jacc.PolicyContextException,
                                                 ClassNotFoundException,
                                                 LoginException
Throws:
javax.security.jacc.PolicyContextException
ClassNotFoundException
LoginException

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2011 The Apache Geronimo development community. All Rights Reserved.