From 1b30b10ad9d3cee9fbab91c473bbf4f8ee7bbedb Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Wed, 26 Jan 2005 13:52:12 +0000 Subject: Added SWIG binding for lasso_session_get_assertions. Also added Java code to test it. --- java/tests/LoginTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'java/tests/LoginTest.java') diff --git a/java/tests/LoginTest.java b/java/tests/LoginTest.java index a346570a..7ae9f568 100644 --- a/java/tests/LoginTest.java +++ b/java/tests/LoginTest.java @@ -85,6 +85,7 @@ public class LoginTest extends TestCase { Identity idpIdentity, spIdentity; Login idpLogin, spLogin; Logout idpLogout, spLogout; + SamlAssertion assertion; Server idp, sp; Session idpSession, spSession; String artifact, authenticationMethod, authnRequestQuery, authnRequestUrl, idpDump, @@ -179,8 +180,8 @@ public class LoginTest extends TestCase { assertNotNull(spSession); spSessionDump = spSession.dump(); assertNotNull(spSessionDump); - // FIXME: To uncomment. - // authenticationMethod = spSession.getAuthenticationMethod("https://idp1/metadata"); + assertion = (SamlAssertion) spSession.getAssertions("https://idp1/metadata").getItem(0); + authenticationMethod = assertion.getAuthenticationStatement().getAuthenticationMethod(); assertEquals(lasso.SAML_AUTHENTICATION_METHOD_PASSWORD, authenticationMethod); // Service provider logout. -- cgit