Examples of addModuleOption()


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

      WebAppDeployment dep = new WebAppDeployment(DEP1, SecuredServlet.class, UsersRolesLoginModule.class);
      DEPLOYMENTS.put(DEP1, dep);

      log.debug("adding module options");
      dep.addModuleOption("usersProperties", Utils.getResource("users-roles-login-module.war/users.properties").getFile());
      dep.addModuleOption("rolesProperties", Utils.getResource("users-roles-login-module.war/roles.properties").getFile());

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

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

      WebAppDeployment dep = new WebAppDeployment(DEP1, SecuredServlet.class, UsersRolesLoginModule.class);
      DEPLOYMENTS.put(DEP1, dep);

      log.debug("adding module options");
      dep.addModuleOption("usersProperties", Utils.getResource("users-roles-login-module.war/users.properties").getFile());
      dep.addModuleOption("rolesProperties", Utils.getResource("users-roles-login-module.war/roles.properties").getFile());

      Map<String, String> usersProps = new HashMap<String, String>();
      usersProps.put("anil", "anil");
      usersProps.put("marcus", "marcus");
      Utils.setPropertiesFile(usersProps, getResource("users-roles-login-module.war/users.properties"));
View Full Code Here

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

      Map<String, String> rolesProps = new HashMap<String, String>();
      rolesProps.put("anil", "gooduser");
      File rolesPropsFile = Utils.createTempPropFile(rolesProps);

      log.debug("adding module options");
      dep.addModuleOption("usersProperties", usersPropsFile.getAbsolutePath());
      dep.addModuleOption("rolesProperties", rolesPropsFile.getAbsolutePath());
      dep.addModuleOption("hashAlgorithm", "MD5");

      log.debug(dep.getWar().toString(true));
View Full Code Here

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

      rolesProps.put("anil", "gooduser");
      File rolesPropsFile = Utils.createTempPropFile(rolesProps);

      log.debug("adding module options");
      dep.addModuleOption("usersProperties", usersPropsFile.getAbsolutePath());
      dep.addModuleOption("rolesProperties", rolesPropsFile.getAbsolutePath());
      dep.addModuleOption("hashAlgorithm", "MD5");

      log.debug(dep.getWar().toString(true));

      return dep.getWar();
View Full Code Here

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

      File rolesPropsFile = Utils.createTempPropFile(rolesProps);

      log.debug("adding module options");
      dep.addModuleOption("usersProperties", usersPropsFile.getAbsolutePath());
      dep.addModuleOption("rolesProperties", rolesPropsFile.getAbsolutePath());
      dep.addModuleOption("hashAlgorithm", "MD5");

      log.debug(dep.getWar().toString(true));

      return dep.getWar();
   }
View Full Code Here

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

      Map<String, String> rolesProps = new HashMap<String, String>();
      rolesProps.put("anil", "gooduser");
      File rolesPropsFile = Utils.createTempPropFile(rolesProps);

      log.debug("adding module options");
      dep.addModuleOption("usersProperties", usersPropsFile.getAbsolutePath());
      dep.addModuleOption("rolesProperties", rolesPropsFile.getAbsolutePath());
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "hex");

      log.debug(dep.getWar().toString(true));
View Full Code Here

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

      rolesProps.put("anil", "gooduser");
      File rolesPropsFile = Utils.createTempPropFile(rolesProps);

      log.debug("adding module options");
      dep.addModuleOption("usersProperties", usersPropsFile.getAbsolutePath());
      dep.addModuleOption("rolesProperties", rolesPropsFile.getAbsolutePath());
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "hex");

      log.debug(dep.getWar().toString(true));
View Full Code Here

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

      File rolesPropsFile = Utils.createTempPropFile(rolesProps);

      log.debug("adding module options");
      dep.addModuleOption("usersProperties", usersPropsFile.getAbsolutePath());
      dep.addModuleOption("rolesProperties", rolesPropsFile.getAbsolutePath());
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "hex");

      log.debug(dep.getWar().toString(true));

      return dep.getWar();
View Full Code Here

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

      log.debug("adding module options");
      dep.addModuleOption("usersProperties", usersPropsFile.getAbsolutePath());
      dep.addModuleOption("rolesProperties", rolesPropsFile.getAbsolutePath());
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "hex");

      log.debug(dep.getWar().toString(true));

      return dep.getWar();
   }
View Full Code Here

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

      Map<String, String> rolesProps = new HashMap<String, String>();
      rolesProps.put("anil", "gooduser");
      File rolesPropsFile = Utils.createTempPropFile(rolesProps);

      log.debug("adding module options");
      dep.addModuleOption("usersProperties", usersPropsFile.getAbsolutePath());
      dep.addModuleOption("rolesProperties", rolesPropsFile.getAbsolutePath());
      dep.addModuleOption("hashAlgorithm", "MD5");
      dep.addModuleOption("hashEncoding", "base64");

      log.debug(dep.getWar().toString(true));
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.