public class SecurityDomainJBossASClient extends JBossASClient
| Modifier and Type | Class and Description |
|---|---|
static class |
SecurityDomainJBossASClient.LoginModuleRequest
Immutable helper
|
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHENTICATION |
static String |
CACHE_TYPE |
static String |
CLASSIC |
static String |
CODE |
static String |
DS_JNDI_NAME |
static String |
FLAG |
static String |
HASH_ALGORITHM |
static String |
HASH_ENCODING |
static String |
LOGIN_MODULE |
static String |
LOGIN_MODULES |
static String |
MODULE_OPTIONS |
static String |
PASSWORD |
static String |
PRINCIPALS_QUERY |
static String |
ROLES_QUERY |
static String |
SECURITY_DOMAIN |
static String |
SUBSYSTEM_SECURITY |
static String |
USERNAME |
ADD, ADDRESS, BATCH, BATCH_STEPS, FAILURE_DESCRIPTION, log, NAME, OPERATION, OUTCOME, OUTCOME_SUCCESS, PERSISTENT, READ_ATTRIBUTE, READ_RESOURCE, REMOVE, RESULT, SUBSYSTEM, SYSTEM_PROPERTY, VALUE, WRITE_ATTRIBUTE| Constructor and Description |
|---|
SecurityDomainJBossASClient(org.jboss.as.controller.client.ModelControllerClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
createNewDatabaseServerSecurityDomain72(String securityDomainName,
String dsJndiName,
String principalsQuery,
String rolesQuery,
String hashAlgorithm,
String hashEncoding)
Create a new security domain using the database server authentication method.
|
void |
createNewSecureIdentitySecurityDomain72(String securityDomainName,
String username,
String password)
Create a new security domain using the SecureIdentity authentication method.
|
void |
createNewSecurityDomain(String securityDomainName,
SecurityDomainJBossASClient.LoginModuleRequest... loginModules)
Creates a new security domain including one or more login modules.
|
void |
flushSecurityDomainCache(String domain)
send a :flush-cache operation to the passed security domain
|
org.jboss.dmr.ModelNode |
getSecureIdentitySecurityDomainModuleOptions(String securityDomainName)
Given the name of an existing security domain that uses the SecureIdentity authentication method,
this returns the module options for that security domain authentication method.
|
boolean |
isSecurityDomain(String securityDomainName)
Checks to see if there is already a security domain with the given name.
|
void |
removeSecurityDomain(String securityDomainName)
Convenience method that removes a security domain by name.
|
boolean |
securityDomainHasLoginModule(String domainName,
String moduleName)
Check if a certain login module is present inside the passed security domain
|
void |
updateSecureIdentitySecurityDomainCredentials(String securityDomainName,
String username,
String password)
Given the name of an existing security domain that uses the SecureIdentity authentication method,
this updates that domain with the new credentials.
|
createBatchRequest, createReadAttributeRequest, createReadAttributeRequest, createRequest, createWriteAttributeRequest, execute, findNodeInList, getFailureDescription, getModelControllerClient, getResultListAsStrings, getResults, getStringAttribute, getStringAttribute, isSuccess, readResource, readResource, remove, setPossibleExpressionpublic static final String SUBSYSTEM_SECURITY
public static final String SECURITY_DOMAIN
public static final String CACHE_TYPE
public static final String AUTHENTICATION
public static final String LOGIN_MODULE
public static final String LOGIN_MODULES
public static final String CLASSIC
public static final String CODE
public static final String FLAG
public static final String MODULE_OPTIONS
public static final String USERNAME
public static final String PASSWORD
public static final String DS_JNDI_NAME
public static final String PRINCIPALS_QUERY
public static final String ROLES_QUERY
public static final String HASH_ALGORITHM
public static final String HASH_ENCODING
public SecurityDomainJBossASClient(org.jboss.as.controller.client.ModelControllerClient client)
public boolean isSecurityDomain(String securityDomainName) throws Exception
securityDomainName - the name to checkExceptionpublic void createNewSecureIdentitySecurityDomain72(String securityDomainName, String username, String password) throws Exception
securityDomainName - the name of the new security domainusername - the username associated with the security domainpassword - the value of the password to store in the configuration (e.g. the obfuscated password itself)Exception - if failed to create security domainpublic void updateSecureIdentitySecurityDomainCredentials(String securityDomainName, String username, String password) throws Exception
securityDomainName - the name of the security domain whose credentials are to changeusername - the new username to be associated with the security domainpassword - the new value of the password to store in the configuration (e.g. the obfuscated password itself)Exception - if failed to update security domainpublic org.jboss.dmr.ModelNode getSecureIdentitySecurityDomainModuleOptions(String securityDomainName) throws Exception
securityDomainName - the name of the security domain whose module options are to be returnedException - if the security domain could not be looked uppublic void createNewDatabaseServerSecurityDomain72(String securityDomainName, String dsJndiName, String principalsQuery, String rolesQuery, String hashAlgorithm, String hashEncoding) throws Exception
securityDomainName - the name of the new security domaindsJndiName - the jndi name for the datasource to query againstprincipalsQuery - the SQL query for selecting password info for a principalrolesQuery - the SQL query for selecting role info for a principalhashAlgorithm - if null defaults to "MD5"hashEncoding - if null defaults to "base64"Exception - if failed to create security domainpublic void removeSecurityDomain(String securityDomainName) throws Exception
securityDomainName - the name of the new security domainException - if failed to remove the security domainpublic void createNewSecurityDomain(String securityDomainName, SecurityDomainJBossASClient.LoginModuleRequest... loginModules) throws Exception
securityDomainName - the name of the new security domainloginModules - an array of login modules to place in the security domain. They are ordered top-down in the
same index order of the array.Exception - if failed to create security domainpublic void flushSecurityDomainCache(String domain) throws Exception
domain - simple name of the domainExceptionpublic boolean securityDomainHasLoginModule(String domainName, String moduleName) throws Exception
domainName - Name of the security domainmoduleName - Name of the Login module - wich usually is it FQCNExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.