Package org.jboss.security.auth.login

Examples of org.jboss.security.auth.login.LoginConfigObjectModelFactory


   /**
    * @throws Exception
    */
   public void testXmlLoginModuleParsing() throws Exception
   {
      LoginConfigObjectModelFactory lcomf = new LoginConfigObjectModelFactory();
      UsersObjectModelFactory uomf = new UsersObjectModelFactory();

      InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("security/login-config2.xml");
      InputStreamReader xmlReader = new InputStreamReader(is);
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
View Full Code Here


  
  
   public void testJaasAuthenticationInfo() throws Exception
   {
      PolicyConfig config = getPolicyConfig("security/jaspi/login-config-jaspi.xml",
            new LoginConfigObjectModelFactory());
      assertNotNull("Returned PolicyConfig is != null ?", config);
      ApplicationPolicy aPolicy = config.get("JBossWS");
      BaseAuthenticationInfo infoBase = aPolicy.getAuthenticationInfo();
      assertTrue("infoBase==AuthenticationInfo", infoBase instanceof AuthenticationInfo);
      AuthenticationInfo info = (AuthenticationInfo)infoBase;
View Full Code Here

      assertTrue("anonymous", roles.equals("props/jbossws-roles.properties"));
   }
  
   public void testJaspiAuthenticationInfo() throws Exception
   {
      LoginConfigObjectModelFactory lcomf = new LoginConfigObjectModelFactory();
      PolicyConfig config = getPolicyConfig("security/jaspi/login-config-jaspi.xml",lcomf);
      assertNotNull("Returned PolicyConfig is != null ?", config);
      ApplicationPolicy aPolicy = config.get("jaspi");
      BaseAuthenticationInfo infoBase = aPolicy.getAuthenticationInfo();
      assertTrue("infoBase==AuthenticationJaspiInfo", infoBase instanceof JASPIAuthenticationInfo);
View Full Code Here

   protected void setUp() throws Exception
   {
      super.setUp();
      ClassLoader tcl = Thread.currentThread().getContextClassLoader();

      LoginConfigObjectModelFactory lcomf = new SecurityConfigObjectModelFactory();
      UsersObjectModelFactory uomf = new UsersObjectModelFactory();
      URL xmlFileURL = tcl.getResource(xmlFile);
      assertNotNull("XML File URL is not null", xmlFileURL);
      InputStreamReader xmlReader = loadURL(xmlFileURL);
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
View Full Code Here

TOP

Related Classes of org.jboss.security.auth.login.LoginConfigObjectModelFactory

Copyright © 2018 www.massapicom. 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.