public class SecurityUtil extends Object
Constructor and Description |
---|
SecurityUtil() |
Modifier and Type | Method and Description |
---|---|
static ApplicationPolicy |
getApplicationPolicy(String domainName)
Obtain the Application Policy
|
static AuditManager |
getAuditManager(String securityDomain,
String baseContext)
Do a JNDI lookup to obtain the Audit Manager
|
static AuthenticationManager |
getAuthenticationManager(String securityDomain,
String baseContext)
Do a JNDI lookup to obtain the authentication manager
|
static AuthorizationManager |
getAuthorizationManager(String securityDomain,
String baseContext)
Do a JNDI lookup to obtain the authorization manager
|
static IdentityTrustManager |
getIdentityTrustManager(String securityDomain,
String baseContext)
Do a JNDI lookup to obtain the IdentityTrust Manager
|
static MappingManager |
getMappingManager(String securityDomain,
String baseContext)
Do a JNDI lookup to obtain the MappingManager
|
static PolicyRegistration |
getPolicyRegistration()
Performs a JNDI lookup to retrieve the configured
PolicyRegistration . |
static Group |
getSubjectRoles(Subject theSubject)
Get the Subject roles by looking for a Group called 'Roles'
|
static String |
unprefixSecurityDomain(String securityDomain)
Strip the security domain of prefix (java:jaas or java:jbsx)
|
public static String unprefixSecurityDomain(String securityDomain)
securityDomain
- public static Group getSubjectRoles(Subject theSubject)
theSubject
- - the Subject to search for rolespublic static ApplicationPolicy getApplicationPolicy(String domainName)
domainName
- Security Domainpublic static AuthenticationManager getAuthenticationManager(String securityDomain, String baseContext)
securityDomain
- baseContext
- the BaseContext for JNDI(Eg: "java:/jaas")public static AuthorizationManager getAuthorizationManager(String securityDomain, String baseContext)
securityDomain
- baseContext
- the BaseContext for JNDI(Eg: "java:/jaas")public static AuditManager getAuditManager(String securityDomain, String baseContext)
securityDomain
- baseContext
- the BaseContext for JNDI(Eg: "java:/jaas")public static IdentityTrustManager getIdentityTrustManager(String securityDomain, String baseContext)
securityDomain
- baseContext
- the BaseContext for JNDI(Eg: "java:/jaas")public static MappingManager getMappingManager(String securityDomain, String baseContext)
securityDomain
- baseContext
- the BaseContext for JNDI(Eg: "java:/jaas")public static PolicyRegistration getPolicyRegistration()
Performs a JNDI lookup to retrieve the configured PolicyRegistration
.
PolicyRegistration
implementation, or null
if the look up
fails.Copyright © 2018 JBoss by Red Hat. All rights reserved.