org.jboss.security.integration
Class JNDIBasedSecurityManagement

java.lang.Object
  extended by org.jboss.security.integration.JNDIBasedSecurityManagement
All Implemented Interfaces:
Serializable, org.jboss.security.ISecurityManagement

public class JNDIBasedSecurityManagement
extends Object
implements org.jboss.security.ISecurityManagement

JNDI Based Security Management

Since:
Sep 9, 2007
Version:
$Revision: 88956 $
Author:
Anil.Saldhana@redhat.com
See Also:
Serialized Form

Field Summary
protected  String auditMgrClass
           
protected  String authenticationMgrClass
           
protected  String authorizationMgrClass
           
protected  String BASE_CTX
           
protected static CallbackHandler callBackHandler
           
static String CBH
           
protected  boolean enableAudit
          Enable the Audit feature
protected  boolean enableIdentity
          Enable the IdentityTrust feature
protected  String identityTrustMgrClass
           
protected static org.jboss.logging.Logger log
           
protected  String mappingMgrClass
           
 
Constructor Summary
JNDIBasedSecurityManagement()
           
 
Method Summary
static void clear()
          Clear all the maps
 SecurityDomainContext createSecurityDomainContext(String securityDomain)
           
 void deregisterJaasSecurityDomainInstance(String securityDomain)
          Legacy deregistration of JaasSecurityDomain instance with the JNDI Object Factory internal hashmap
 org.jboss.security.audit.AuditManager getAuditManager(String securityDomain)
           
 org.jboss.security.AuthenticationManager getAuthenticationManager(String securityDomain)
           
 org.jboss.security.AuthorizationManager getAuthorizationManager(String securityDomain)
           
 org.jboss.security.identitytrust.IdentityTrustManager getIdentityTrustManager(String securityDomain)
           
 org.jboss.security.mapping.MappingManager getMappingManager(String securityDomain)
           
 void registerJaasSecurityDomainInstance(JaasSecurityDomain domain)
          Legacy registration of JaasSecurityDomain instance with the JNDI Object Factory internal hashmap
 void setAuditMgrClass(String auditMgrClass)
           
 void setAuthenticationMgrClass(String authenticationMgrClass)
           
 void setAuthorizationMgrClass(String authorizationMgrClass)
           
 void setBaseContext(String ctx)
           
 void setCachePolicy(org.jboss.util.CachePolicy cp)
           
static void setCacheTimeout(String securityDomain, int timeoutInSecs, int resInSecs)
          Set the indicated security domain cache timeout.
 void setCallBackHandler(CallbackHandler cbh)
           
static void setDefaultCacheResolution(int defaultCacheResolution)
           
static void setDefaultCacheTimeout(int defaultCacheTimeout)
           
 void setEnableAudit(boolean enableAudit)
           
 void setEnableIdentity(boolean enableIdentity)
           
 void setIdentityTrustMgrClass(String identityTrustMgrClass)
           
 void setMappingMgrClass(String mappingMgrClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CBH

public static final String CBH
See Also:
Constant Field Values

log

protected static org.jboss.logging.Logger log

BASE_CTX

protected String BASE_CTX

authenticationMgrClass

protected String authenticationMgrClass

authorizationMgrClass

protected String authorizationMgrClass

auditMgrClass

protected String auditMgrClass

identityTrustMgrClass

protected String identityTrustMgrClass

mappingMgrClass

protected String mappingMgrClass

callBackHandler

protected static transient CallbackHandler callBackHandler

enableIdentity

protected boolean enableIdentity
Enable the IdentityTrust feature


enableAudit

protected boolean enableAudit
Enable the Audit feature

Constructor Detail

JNDIBasedSecurityManagement

public JNDIBasedSecurityManagement()
Method Detail

getAuditManager

public org.jboss.security.audit.AuditManager getAuditManager(String securityDomain)
Specified by:
getAuditManager in interface org.jboss.security.ISecurityManagement

getAuthenticationManager

public org.jboss.security.AuthenticationManager getAuthenticationManager(String securityDomain)
Specified by:
getAuthenticationManager in interface org.jboss.security.ISecurityManagement

getAuthorizationManager

public org.jboss.security.AuthorizationManager getAuthorizationManager(String securityDomain)
Specified by:
getAuthorizationManager in interface org.jboss.security.ISecurityManagement

getIdentityTrustManager

public org.jboss.security.identitytrust.IdentityTrustManager getIdentityTrustManager(String securityDomain)
Specified by:
getIdentityTrustManager in interface org.jboss.security.ISecurityManagement

getMappingManager

public org.jboss.security.mapping.MappingManager getMappingManager(String securityDomain)
Specified by:
getMappingManager in interface org.jboss.security.ISecurityManagement

setAuthenticationMgrClass

public void setAuthenticationMgrClass(String authenticationMgrClass)

setAuthorizationMgrClass

public void setAuthorizationMgrClass(String authorizationMgrClass)

setAuditMgrClass

public void setAuditMgrClass(String auditMgrClass)

setIdentityTrustMgrClass

public void setIdentityTrustMgrClass(String identityTrustMgrClass)

setMappingMgrClass

public void setMappingMgrClass(String mappingMgrClass)

setCallBackHandler

public void setCallBackHandler(CallbackHandler cbh)

setEnableAudit

public void setEnableAudit(boolean enableAudit)

setEnableIdentity

public void setEnableIdentity(boolean enableIdentity)

setCachePolicy

public void setCachePolicy(org.jboss.util.CachePolicy cp)

setBaseContext

public void setBaseContext(String ctx)

setCacheTimeout

public static void setCacheTimeout(String securityDomain,
                                   int timeoutInSecs,
                                   int resInSecs)
Set the indicated security domain cache timeout. This only has an effect if the security domain is using the default jboss TimedCachePolicy implementation.

Parameters:
securityDomain - the name of the security domain cache
timeoutInSecs - - the cache timeout in seconds.
resInSecs - - resolution of timeouts in seconds.

setDefaultCacheTimeout

public static void setDefaultCacheTimeout(int defaultCacheTimeout)

setDefaultCacheResolution

public static void setDefaultCacheResolution(int defaultCacheResolution)

createSecurityDomainContext

public SecurityDomainContext createSecurityDomainContext(String securityDomain)
                                                  throws Exception
Throws:
Exception

registerJaasSecurityDomainInstance

public void registerJaasSecurityDomainInstance(JaasSecurityDomain domain)
                                        throws Exception
Legacy registration of JaasSecurityDomain instance with the JNDI Object Factory internal hashmap

Parameters:
domain -
jsd -
Throws:
Exception

deregisterJaasSecurityDomainInstance

public void deregisterJaasSecurityDomainInstance(String securityDomain)
Legacy deregistration of JaasSecurityDomain instance with the JNDI Object Factory internal hashmap

Parameters:
securityDomain -
jsd -
Throws:
Exception

clear

public static void clear()
Clear all the maps



Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.