Package org.jboss.security.identity.sso

Examples of org.jboss.security.identity.sso.AuthResponse


   public void testResponseGeneration() throws Exception
   {
      assertNotNull("processor != null");
      String response = processor.generateAuthResponse(ASSERTING_PARTY,USERNAME, true);
      assertNotNull("response != null", response);
      AuthResponse authResponse = processor.parseAuthResponse(response);
      assertNotNull("authResponse != null", authResponse);
      assertTrue("AP ==" + ASSERTING_PARTY,
            authResponse.getAssertingParty().equals(ASSERTING_PARTY));
      assertTrue(" USERNAME==" + USERNAME,
            authResponse.getUser().getUserName().equals(USERNAME));
      assertNotNull("Asserting token != null", authResponse.getAssertToken());
      assertTrue("authenticated?", authResponse.isAuthenticated());
   }
View Full Code Here

TOP

Related Classes of org.jboss.security.identity.sso.AuthResponse

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.