Examples of addModuleOption()


Examples of org.jboss.as.test.integration.security.loginmodules.common.WebAppDeployment.addModuleOption()

      DEPLOYMENTS.put(DEP3, dep);

      log.debug("adding module options");
      dep.addModuleOption("dsJndiName", "java:jboss/datasources/LoginDSdep" + DEP_NUM.get(DEP3));
      dep.addModuleOption("principalsQuery", "select Password from Principals where PrincipalID=?");
      dep.addModuleOption("rolesQuery", "select Role, RoleGroup from Roles where PrincipalID=?");
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "base64");

      Map<String, String> usersProps = new HashMap<String, String>();
      usersProps.put("anil", Utils.hash("anil", "MD5", Coding.BASE_64));
View Full Code Here

Examples of org.jboss.as.test.integration.security.loginmodules.common.WebAppDeployment.addModuleOption()

      log.debug("adding module options");
      dep.addModuleOption("dsJndiName", "java:jboss/datasources/LoginDSdep" + DEP_NUM.get(DEP3));
      dep.addModuleOption("principalsQuery", "select Password from Principals where PrincipalID=?");
      dep.addModuleOption("rolesQuery", "select Role, RoleGroup from Roles where PrincipalID=?");
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "base64");

      Map<String, String> usersProps = new HashMap<String, String>();
      usersProps.put("anil", Utils.hash("anil", "MD5", Coding.BASE_64));
      usersProps.put("marcus", Utils.hash("marcus", "MD5", BASE_64));
View Full Code Here

Examples of org.jboss.as.test.integration.security.loginmodules.common.WebAppDeployment.addModuleOption()

      log.debug("adding module options");
      dep.addModuleOption("dsJndiName", "java:jboss/datasources/LoginDSdep" + DEP_NUM.get(DEP3));
      dep.addModuleOption("principalsQuery", "select Password from Principals where PrincipalID=?");
      dep.addModuleOption("rolesQuery", "select Role, RoleGroup from Roles where PrincipalID=?");
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "base64");

      Map<String, String> usersProps = new HashMap<String, String>();
      usersProps.put("anil", Utils.hash("anil", "MD5", Coding.BASE_64));
      usersProps.put("marcus", Utils.hash("marcus", "MD5", BASE_64));
      databaseManager.updateDatabase(DEP_NUM.get(DEP3), usersProps);
View Full Code Here

Examples of org.jboss.as.test.integration.security.loginmodules.common.WebAppDeployment.addModuleOption()

      WebAppDeployment dep = new WebAppDeployment(DEP4, SecuredServletWithDBSetupForDep4.class, DatabaseServerLoginModule.class);
      DEPLOYMENTS.put(DEP4, dep);

      log.debug("adding module options");
      dep.addModuleOption("dsJndiName", "java:jboss/datasources/LoginDSdep" + DEP_NUM.get(DEP4));
      dep.addModuleOption("principalsQuery", "select Password from Principals where PrincipalID=?");
      dep.addModuleOption("rolesQuery", "select Role, RoleGroup from Roles where PrincipalID=?");
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "hex");
View Full Code Here

Examples of org.jboss.as.test.integration.security.loginmodules.common.WebAppDeployment.addModuleOption()

      WebAppDeployment dep = new WebAppDeployment(DEP4, SecuredServletWithDBSetupForDep4.class, DatabaseServerLoginModule.class);
      DEPLOYMENTS.put(DEP4, dep);

      log.debug("adding module options");
      dep.addModuleOption("dsJndiName", "java:jboss/datasources/LoginDSdep" + DEP_NUM.get(DEP4));
      dep.addModuleOption("principalsQuery", "select Password from Principals where PrincipalID=?");
      dep.addModuleOption("rolesQuery", "select Role, RoleGroup from Roles where PrincipalID=?");
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "hex");

      Map<String, String> usersProps = new HashMap<String, String>();
View Full Code Here

Examples of org.jboss.as.test.integration.security.loginmodules.common.WebAppDeployment.addModuleOption()

      DEPLOYMENTS.put(DEP4, dep);

      log.debug("adding module options");
      dep.addModuleOption("dsJndiName", "java:jboss/datasources/LoginDSdep" + DEP_NUM.get(DEP4));
      dep.addModuleOption("principalsQuery", "select Password from Principals where PrincipalID=?");
      dep.addModuleOption("rolesQuery", "select Role, RoleGroup from Roles where PrincipalID=?");
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "hex");

      Map<String, String> usersProps = new HashMap<String, String>();
      usersProps.put("anil", Utils.hash("anil", "MD5", HEX));
View Full Code Here

Examples of org.jboss.as.test.integration.security.loginmodules.common.WebAppDeployment.addModuleOption()

      log.debug("adding module options");
      dep.addModuleOption("dsJndiName", "java:jboss/datasources/LoginDSdep" + DEP_NUM.get(DEP4));
      dep.addModuleOption("principalsQuery", "select Password from Principals where PrincipalID=?");
      dep.addModuleOption("rolesQuery", "select Role, RoleGroup from Roles where PrincipalID=?");
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "hex");

      Map<String, String> usersProps = new HashMap<String, String>();
      usersProps.put("anil", Utils.hash("anil", "MD5", HEX));
      usersProps.put("marcus", Utils.hash("marcus", "MD5", HEX));
View Full Code Here

Examples of org.jboss.as.test.integration.security.loginmodules.common.WebAppDeployment.addModuleOption()

      log.debug("adding module options");
      dep.addModuleOption("dsJndiName", "java:jboss/datasources/LoginDSdep" + DEP_NUM.get(DEP4));
      dep.addModuleOption("principalsQuery", "select Password from Principals where PrincipalID=?");
      dep.addModuleOption("rolesQuery", "select Role, RoleGroup from Roles where PrincipalID=?");
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "hex");

      Map<String, String> usersProps = new HashMap<String, String>();
      usersProps.put("anil", Utils.hash("anil", "MD5", HEX));
      usersProps.put("marcus", Utils.hash("marcus", "MD5", HEX));
      databaseManager.updateDatabase(DEP_NUM.get(DEP4), usersProps);
View Full Code Here

Examples of org.jboss.as.test.integration.security.loginmodules.common.WebAppDeployment.addModuleOption()

      WebAppDeployment dep = new WebAppDeployment(DEP1, SecuredServletWithDBSetupForDep1.class, DatabaseServerLoginModule.class);
      DEPLOYMENTS.put(DEP1, dep);

      log.debug("adding module options");
      dep.addModuleOption("dsJndiName", "java:jboss/datasources/LoginDSdep" + DEP_NUM.get(DEP1));
      dep.addModuleOption("principalsQuery", "select Password from Principals where PrincipalID=?");
      dep.addModuleOption("rolesQuery", "select Role, RoleGroup from Roles where PrincipalID=?");

      Map<String, String> usersProps = new HashMap<String, String>();
      usersProps.put("anil", "anil");
View Full Code Here

Examples of org.jboss.as.test.integration.security.loginmodules.common.WebAppDeployment.addModuleOption()

      WebAppDeployment dep = new WebAppDeployment(DEP1, SecuredServletWithDBSetupForDep1.class, DatabaseServerLoginModule.class);
      DEPLOYMENTS.put(DEP1, dep);

      log.debug("adding module options");
      dep.addModuleOption("dsJndiName", "java:jboss/datasources/LoginDSdep" + DEP_NUM.get(DEP1));
      dep.addModuleOption("principalsQuery", "select Password from Principals where PrincipalID=?");
      dep.addModuleOption("rolesQuery", "select Role, RoleGroup from Roles where PrincipalID=?");

      Map<String, String> usersProps = new HashMap<String, String>();
      usersProps.put("anil", "anil");
      usersProps.put("marcus", "marcus");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.