org.apache.geronimo.security.jacc.mappingprovider
Class ApplicationPrincipalRoleConfigurationManager

java.lang.Object
  extended by 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) $

Field Summary
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from interface org.apache.geronimo.security.jacc.RunAsSource
NULL
 
Constructor Summary
ApplicationPrincipalRoleConfigurationManager(Map<Principal,Set<String>> principalRoleMap, SubjectInfo defaultSubjectInfo, Map<String,SubjectInfo> roleDesignates, CredentialStore credentialStore)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 Subject getDefaultSubject()
           
 GBeanInfo getGBeanInfo()
           
 Subject getSubjectForRole(String role)
          If role is null, return null.
 void install(Set<String> contextIds)
           
static void setPrincipalRoleConfigurationFactory(PrincipalRoleConfigurationFactory principalRoleConfigurationFactory)
           
 void uninstall(Set<String> contextIds)
           
 
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

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
Method Detail

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.