Package org.jasig.cas.client.authentication

Examples of org.jasig.cas.client.authentication.AttributePrincipalImpl


  public void test_cas_auth_authFailure() throws ApsSystemException {
    RequestContext reqCtx = this.getRequestContext();
    MockHttpServletRequest request = (MockHttpServletRequest) reqCtx.getRequest();

    AttributePrincipal attributePrincipal = new AttributePrincipalImpl("admin");
    Assertion assertion = new AssertionImpl(attributePrincipal, new HashMap());
    request.setAttribute(CasClientPluginSystemCostants.JPCASCLIENT_CONST_CAS_ASSERTION, assertion);

    int status = _authenticator.service(reqCtx, ControllerManager.CONTINUE);
    assertEquals(status, ControllerManager.CONTINUE);
View Full Code Here

TOP

Related Classes of org.jasig.cas.client.authentication.AttributePrincipalImpl

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.