public class SecurityFactory extends Object
prepare()
and release()
Anil SaldhanaConstructor and Description |
---|
SecurityFactory() |
Modifier and Type | Method and Description |
---|---|
static SecurityContext |
establishSecurityContext(String securityDomainName)
Establish a security context on the thread
|
static AuditManager |
getAuditManager(String securityDomain)
Get the
AuditManager interface |
static AuthenticationManager |
getAuthenticationManager(String securityDomain)
Get the
AuthenticationManager interface |
static AuthorizationManager |
getAuthorizationManager(String securityDomain)
Get the
AuthorizationManager interface |
static MappingManager |
getMappingManager(String securityDomain)
Get the
MappingManager |
static ISecurityManagement |
getSecurityManagement()
Get the
ISecurityManagement interface |
static void |
prepare()
Prepare for security operations.
|
static void |
release()
Will release anything that was done during
prepare() step |
static void |
setJDKLogger()
Set the JDK logger Plugin on the system property
org.jboss.logging.Logger.pluginClass
|
static void |
setLog4JLogger()
Set the Log4J logger Plugin on the system property
org.jboss.logging.Logger.pluginClass
This is the default behavior of the
SecurityFactory#prepare() method |
static void |
setSecurityManagement(ISecurityManagement iSecurityManagement)
Set
ISecurityManagement |
public static AuthenticationManager getAuthenticationManager(String securityDomain)
AuthenticationManager
interfacesecurityDomain
- security domain such as "other"public static AuthorizationManager getAuthorizationManager(String securityDomain)
AuthorizationManager
interfacesecurityDomain
- security domain such as "other"public static AuditManager getAuditManager(String securityDomain)
AuditManager
interfacesecurityDomain
- security domain such as "other"public static MappingManager getMappingManager(String securityDomain)
MappingManager
securityDomain
- public static ISecurityManagement getSecurityManagement()
ISecurityManagement
interfacepublic static void setSecurityManagement(ISecurityManagement iSecurityManagement)
ISecurityManagement
iSecurityManagement
- public static void prepare()
Configuration
that uses our xml based configuration.to release the configuration
public static SecurityContext establishSecurityContext(String securityDomainName)
securityDomainName
- public static void setLog4JLogger()
Set the Log4J logger Plugin on the system property
org.jboss.logging.Logger.pluginClass
This is the default behavior of the SecurityFactory#prepare()
method
Note: If the system property is already set, there is no change in the system property.
public static void setJDKLogger()
Set the JDK logger Plugin on the system property org.jboss.logging.Logger.pluginClass
Note: If the system property is already set, there is no change in the system property. Also you will need to provide logging.properties
public static void release()
prepare()
stepCopyright © 2012 JBoss Inc.. All Rights Reserved.