org.apache.geronimo.security.jacc.mappingprovider
Class ApplicationPrincipalRoleConfigurationManager
java.lang.Object
org.apache.geronimo.security.jacc.mappingprovider.ApplicationPrincipalRoleConfigurationManager
- All Implemented Interfaces:
- PrincipalRoleMapper, RunAsSource
public class ApplicationPrincipalRoleConfigurationManager
- extends Object
- implements PrincipalRoleMapper
- Version:
- $Rev: 809078 $ $Date: 2009-08-29 08:51:12 +0800 (Sat, 29 Aug 2009) $
| 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
ApplicationPrincipalRoleConfigurationManager
public ApplicationPrincipalRoleConfigurationManager(Map<Principal,Set<String>> principalRoleMap,
SubjectInfo defaultSubjectInfo,
Map<String,SubjectInfo> roleDesignates,
CredentialStore credentialStore)
throws javax.security.jacc.PolicyContextException,
ClassNotFoundException,
LoginException
- Throws:
javax.security.jacc.PolicyContextException
ClassNotFoundException
LoginException
setPrincipalRoleConfigurationFactory
public static void setPrincipalRoleConfigurationFactory(PrincipalRoleConfigurationFactory principalRoleConfigurationFactory)
install
public void install(Set<String> contextIds)
throws javax.security.jacc.PolicyContextException
- Specified by:
install in interface PrincipalRoleMapper
- Throws:
javax.security.jacc.PolicyContextException
uninstall
public void uninstall(Set<String> contextIds)
throws javax.security.jacc.PolicyContextException
- Specified by:
uninstall in interface PrincipalRoleMapper
- Throws:
javax.security.jacc.PolicyContextException
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
- Throws:
Exception
doStop
public void doStop()
throws Exception
- Throws:
Exception
doFail
public void doFail()
getGBeanInfo
public GBeanInfo getGBeanInfo()
Copyright © 2003-2011 The Apache Geronimo development community. All Rights Reserved.