Package org.openiaml.model.model.components

Examples of org.openiaml.model.model.components.LoginHandler


    // there is a generated instance
    DomainIterator iterator = assertHasDomainIterator(session, "current instance");
    assertGenerated(iterator);
   
    // connected by a SetWire from the LoginHandler
    LoginHandler handler = assertHasLoginHandler(session, "role-based login handler for target session");
    assertGenerated(assertHasSetWire(root, handler, iterator));
   
    // TODO which Schema should it connect to?
   
    // it must have a SelectEdge out to the
View Full Code Here


    assertNotGenerated(obj);

    DomainAttribute password = assertHasDomainAttribute(obj, "password");
    assertNotGenerated(password);

    LoginHandler handler = assertHasLoginHandler(session, "login handler");
    assertNotGenerated(handler);
    assertEquals(handler.getType(), LoginHandlerTypes.DOMAIN_OBJECT);
    DomainIterator iterator = assertHasDomainIterator(session, "logged in user");
    assertNotGenerated(iterator);
    DomainInstance instance = iterator.getCurrentInstance();
    assertNotGenerated(instance);
View Full Code Here

  public void testLoginHandler() throws Exception {

    Session target = assertHasSession(root, "Logout Session");
    Frame logout = assertHasFrame(target, "Logout Page");
    Session session = assertHasSession(root, "Session");
    LoginHandler handler = assertHasLoginHandler(session, "role-based login handler for Session");

    // the LoginHandler will have an outgoing ECARule to denote the logout page
    assertGenerated(assertHasECARule(root, handler, logout, "logout"));

    // there is only three outgoing ActionEdges from the LoginHandler
    List<String> actions = new ArrayList<String>();
    for (ECARule e : handler.getListeners()) {
      actions.add(e.getName());
    }

    assertCollectionEquals(actions, "login", "logout", "success");
  }
View Full Code Here

  public void testLoginHandler() throws Exception {

    Session target = assertHasSession(root, "Success Session");
    Frame success = assertHasFrame(target, "Success Page");
    Session session = assertHasSession(root, "Session");
    LoginHandler handler = assertHasLoginHandler(session, "role-based login handler for Session");

    // the LoginHandler will have an outgoing ECARule to denote the success page
    assertGenerated(assertHasECARule(root, handler, success, "success"));

    // there is only three outgoing ActionEdges from the LoginHandler
    List<String> actions = new ArrayList<String>();
    for (ECARule e : handler.getListeners()) {
      actions.add(e.getName());
    }

    assertCollectionEquals(actions, "login", "logout", "success");
  }
View Full Code Here

  public void testLoginHandler() throws Exception {

    Session target = assertHasSession(root, "Login Session");
    Frame login = assertHasFrame(target, "Login Page");
    Session session = assertHasSession(root, "Session");
    LoginHandler handler = assertHasLoginHandler(session, "role-based login handler for Session");

    // the LoginHandler will have an outgoing ECARule to denote the login page
    assertGenerated(assertHasECARule(root, handler, login, "login"));

    // there is only three outgoing ActionEdges from the LoginHandler
    List<String> actions = new ArrayList<String>();
    for (ECARule e : handler.getListeners()) {
      actions.add(e.getName());
    }

    assertCollectionEquals(actions, "login", "logout", "success");
  }
View Full Code Here

    assertNotGenerated(value);

    Frame viewkey = assertHasFrame(session, "viewkey");
    assertNotGenerated(viewkey);

    LoginHandler handler = assertHasLoginHandler(session, "Login Handler");
    assertNotGenerated(handler);
    assertEquals(handler.getType(), LoginHandlerTypes.SECRET_KEY);

    // stored key
    Value key = assertHasValue(session, "my login key");
    assertNotGenerated(key);
    // the key must have a default
View Full Code Here

    // there should only be one
    assertEquals("Values found: " + session.getValues().toString(), 2, session.getValues().size());

    // there should be a SetWire from the LoginHandler to this
    LoginHandler loginHandler = assertHasLoginHandler(session, "Login Handler");
    assertNotGenerated(loginHandler);

    assertHasSetWire(session, loginHandler, my, "set");
  }
View Full Code Here

TOP

Related Classes of org.openiaml.model.model.components.LoginHandler

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.