code: public void createNewSecureIdentitySecurityDomain72(String securityDomainName, String username, String password)
              throws Exception {
  
          Address addr = Address.root().add(SUBSYSTEM, SUBSYSTEM_SECURITY, SECURITY_DOMAIN, securityDomainName);
          ModelNode addTopNode = createRequest(ADD, addr);
          addTopNode.get(CACHE_TYPE).set("default");
  
          Address authAddr = addr.clone().add(AUTHENTICATION, CLASSIC);
          ModelNode addAuthNode = createRequest(ADD, authAddr);
  
          Address loginAddr = authAddr.clone().add("login-module", "SecureIdentity");
          ModelNode loginModule = createRequest(ADD, loginAddr);
  
          loginModule.get(CODE).set("SecureIdentity");
          loginModule.get(FLAG).set("required");
          ModelNode moduleOptions = loginModule.get(MODULE_OPTIONS);
          moduleOptions.setEmptyList();
          addPossibleExpression(moduleOptions, USERNAME, username);
          addPossibleExpression(moduleOptions, PASSWORD, password);
  
          ModelNode batch = createBatchRequest(addTopNode, addAuthNode, loginModule);
  
          ModelNode results = execute(batch);
          if (!isSuccess(results)) {
              throw new FailureException(results, "Failed to create security domain [" + securityDomainName + "]");
          }
  
          return;
      }
docs: Create a new security domain using the SecureIdentity authentication method.
  This is used when you want to obfuscate a database password in the configuration.
  
  This is the version for as7.2+ (e.g. eap 6.1)
  
  @param securityDomainName the name of the new security domain
  @param username the username associated with the security domain
  @param password the value of the password to store in the configuration
  (e.g. the obfuscated password itself)
  
  @throws Exception if failed to create security domain