diff options
author | Emmanuel Raviart <eraviart@entrouvert.com> | 2005-01-26 13:52:12 +0000 |
---|---|---|
committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2005-01-26 13:52:12 +0000 |
commit | 1b30b10ad9d3cee9fbab91c473bbf4f8ee7bbedb (patch) | |
tree | 482545b236f98c9e50eb784d295175de310b73ae /java | |
parent | aaafb05b60d394625b6267d8afabb69642943b3b (diff) | |
download | lasso-1b30b10ad9d3cee9fbab91c473bbf4f8ee7bbedb.tar.gz lasso-1b30b10ad9d3cee9fbab91c473bbf4f8ee7bbedb.tar.xz lasso-1b30b10ad9d3cee9fbab91c473bbf4f8ee7bbedb.zip |
Added SWIG binding for lasso_session_get_assertions. Also added Java code to
test it.
Diffstat (limited to 'java')
-rw-r--r-- | java/tests/LoginTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
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. |