|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.security.plugins.JaasSecurityManagerService
This is a JMX service which manages JAAS based SecurityManagers. JAAS SecurityManagers are responsible for validating credentials associated with principals. The service defaults to the org.jboss.security.plugins.JaasSecurityManager implementation but this can be changed via the securityManagerClass property.
JaasSecurityManager
(src) ,
SubjectSecurityManager
(src) Nested Class Summary | |
static class |
JaasSecurityManagerService.DefaultCacheObjectFactory (src)
java:/timedCacheFactory ObjectFactory implementation |
static class |
JaasSecurityManagerService.SecurityDomainObjectFactory (src)
|
Field Summary |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.security.plugins.JaasSecurityManagerServiceMBean (src) |
OBJECT_NAME |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
JaasSecurityManagerService()
The constructor does nothing as the security manager is created on each lookup into java:/jaas/xxx. |
Method Summary | |
boolean |
doesUserHaveRole(java.lang.String securityDomain,
java.security.Principal principal,
java.lang.Object credential,
java.util.Set roles)
Validates the application domain roles to which the operational environment Principal belongs. |
void |
flushAuthenticationCache(java.lang.String securityDomain)
flush the cache policy for the indicated security domain if one exists. |
void |
flushAuthenticationCache(java.lang.String securityDomain,
java.security.Principal user)
Flush a principal's authentication cache entry associated with the given securityDomain. |
java.lang.String |
getAuthenticationCacheJndiName()
Get the jndi name under which the authentication cache policy is found |
java.util.List |
getAuthenticationCachePrincipals(java.lang.String securityDomain)
Return the active principals in the indicated security domain auth cache. |
java.lang.String |
getCallbackHandlerClassName()
Get the default CallbackHandler implementation class name |
int |
getDefaultCacheResolution()
Get the default timed cache policy resolution. |
int |
getDefaultCacheTimeout()
Get the default timed cache policy timeout. |
java.lang.String |
getDefaultUnauthenticatedPrincipal()
Get the default unauthenticated principal. |
java.security.Principal |
getPrincipal(java.lang.String securityDomain,
java.security.Principal principal)
Map from the operational environment Principal to the application domain principal. |
java.lang.String |
getSecurityManagerClassName()
Get the name of the class that provides the security manager implementation. |
java.lang.String |
getSecurityProxyFactoryClassName()
Get the name of the class that provides the SecurityProxyFactory implementation. |
java.util.Set |
getUserRoles(java.lang.String securityDomain,
java.security.Principal principal,
java.lang.Object credential)
Return the set of domain roles the principal has been assigned. |
boolean |
isValid(java.lang.String securityDomain,
java.security.Principal principal,
java.lang.Object credential)
The isValid method is invoked to see if a user identity and associated credentials as known in the operational environment are valid proof of the user identity. |
void |
registerSecurityDomain(java.lang.String securityDomain,
SecurityDomain (src) instance)
Register a SecurityDomain implmentation |
void |
setAuthenticationCacheJndiName(java.lang.String jndiName)
Set the jndi name under which the authentication cache policy is found |
void |
setCacheTimeout(java.lang.String securityDomain,
int timeoutInSecs,
int resInSecs)
Set the indicated security domain cache timeout. |
void |
setCallbackHandlerClassName(java.lang.String className)
Set the default CallbackHandler implementation class name |
void |
setDefaultCacheResolution(int resInSecs)
Set the default timed cache policy resolution. |
void |
setDefaultCacheTimeout(int timeoutInSecs)
Set the default timed cache policy timeout. |
void |
setDefaultUnauthenticatedPrincipal(java.lang.String principal)
Set the default unauthenticated principal. |
void |
setSecurityManagerClassName(java.lang.String className)
Set the name of the class that provides the security manager implementation. |
void |
setSecurityProxyFactoryClassName(java.lang.String className)
Set the name of the class that provides the SecurityProxyFactory implementation. |
protected void |
startService()
Sub-classes should override this method to provide custum 'start' logic. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean (src) |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Constructor Detail |
public JaasSecurityManagerService()
Method Detail |
public java.lang.String getSecurityManagerClassName()
JaasSecurityManagerServiceMBean (src)
getSecurityManagerClassName
in interface JaasSecurityManagerServiceMBean (src)
public void setSecurityManagerClassName(java.lang.String className) throws java.lang.ClassNotFoundException, java.lang.ClassCastException
JaasSecurityManagerServiceMBean (src)
setSecurityManagerClassName
in interface JaasSecurityManagerServiceMBean (src)
java.lang.ClassNotFoundException
- thrown if the className cannot be found
using the thread context class loader.
java.lang.ClassCastException
- thrown if the className does not implement the
org.jboss.security.AuthenticationManager interface.public java.lang.String getSecurityProxyFactoryClassName()
JaasSecurityManagerServiceMBean (src)
getSecurityProxyFactoryClassName
in interface JaasSecurityManagerServiceMBean (src)
public void setSecurityProxyFactoryClassName(java.lang.String className) throws java.lang.ClassNotFoundException
JaasSecurityManagerServiceMBean (src)
setSecurityProxyFactoryClassName
in interface JaasSecurityManagerServiceMBean (src)
java.lang.ClassNotFoundException
public java.lang.String getCallbackHandlerClassName()
getCallbackHandlerClassName
in interface JaasSecurityManagerServiceMBean (src)
public void setCallbackHandlerClassName(java.lang.String className) throws java.lang.ClassNotFoundException
setCallbackHandlerClassName
in interface JaasSecurityManagerServiceMBean (src)
java.lang.ClassNotFoundException
CallbackHandler
public java.lang.String getAuthenticationCacheJndiName()
getAuthenticationCacheJndiName
in interface JaasSecurityManagerServiceMBean (src)
public void setAuthenticationCacheJndiName(java.lang.String jndiName)
setAuthenticationCacheJndiName
in interface JaasSecurityManagerServiceMBean (src)
jndiName
- the name to the ObjectFactory or CachePolicy binding.public int getDefaultCacheTimeout()
getDefaultCacheTimeout
in interface JaasSecurityManagerServiceMBean (src)
public void setDefaultCacheTimeout(int timeoutInSecs)
setDefaultCacheTimeout
in interface JaasSecurityManagerServiceMBean (src)
timeoutInSecs
- - the cache timeout in seconds.public int getDefaultCacheResolution()
getDefaultCacheResolution
in interface JaasSecurityManagerServiceMBean (src)
public void setDefaultCacheResolution(int resInSecs)
setDefaultCacheResolution
in interface JaasSecurityManagerServiceMBean (src)
resInSecs
- - resolution of timeouts in seconds.public void setCacheTimeout(java.lang.String securityDomain, int timeoutInSecs, int resInSecs)
setCacheTimeout
in interface JaasSecurityManagerServiceMBean (src)
securityDomain
- the name of the security domain cachetimeoutInSecs
- - the cache timeout in seconds.resInSecs
- - resolution of timeouts in seconds.public void flushAuthenticationCache(java.lang.String securityDomain)
flushAuthenticationCache
in interface JaasSecurityManagerServiceMBean (src)
securityDomain
- the name of the security domain cachepublic void flushAuthenticationCache(java.lang.String securityDomain, java.security.Principal user)
flushAuthenticationCache
in interface JaasSecurityManagerServiceMBean (src)
securityDomain
- the name of the security domain cacheuser
- the principal of the user to flushpublic java.util.List getAuthenticationCachePrincipals(java.lang.String securityDomain)
getAuthenticationCachePrincipals
in interface JaasSecurityManagerServiceMBean (src)
securityDomain
- the name of the security to lookup the cache for
public boolean isValid(java.lang.String securityDomain, java.security.Principal principal, java.lang.Object credential)
SecurityManagerMBean (src)
isValid
in interface SecurityManagerMBean (src)
securityDomain
- - the name of the security to useprincipal
- - the user identity in the operation environmentcredential
- - the proof of user identity as known in the
operation environment
public java.security.Principal getPrincipal(java.lang.String securityDomain, java.security.Principal principal)
SecurityManagerMBean (src)
getPrincipal
in interface SecurityManagerMBean (src)
principal
- - the caller principal as known in the operation environment.
public boolean doesUserHaveRole(java.lang.String securityDomain, java.security.Principal principal, java.lang.Object credential, java.util.Set roles)
SecurityManagerMBean (src)
doesUserHaveRole
in interface SecurityManagerMBean (src)
securityDomain
- - the name of the security to useprincipal
- - the user identity in the operation environmentcredential
- - the proof of user identity as known in theroles
- - Setpublic java.util.Set getUserRoles(java.lang.String securityDomain, java.security.Principal principal, java.lang.Object credential)
SecurityManagerMBean (src)
getUserRoles
in interface SecurityManagerMBean (src)
securityDomain
- - the name of the security to useprincipal
- - the user identity in the operation environmentcredential
- - the proof of user identity as known in the
protected void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
public void registerSecurityDomain(java.lang.String securityDomain, SecurityDomain (src) instance)
registerSecurityDomain
in interface JaasSecurityManagerServiceMBean (src)
public java.lang.String getDefaultUnauthenticatedPrincipal()
getDefaultUnauthenticatedPrincipal
in interface JaasSecurityManagerServiceMBean (src)
public void setDefaultUnauthenticatedPrincipal(java.lang.String principal)
setDefaultUnauthenticatedPrincipal
in interface JaasSecurityManagerServiceMBean (src)
principal
- The principal name
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |