org.apache.geronimo.security.jacc
Class ApplicationPolicyConfigurationManager
java.lang.Object
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) $
| Fields inherited from interface org.apache.geronimo.security.jacc.RunAsSource |
NULL |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final GBeanInfo GBEAN_INFO
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
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.