org.apache.ws.security.saml
Class SamlConditionsTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.apache.ws.security.saml.SamlConditionsTest

public class SamlConditionsTest
extends org.junit.Assert

Test-case for sending and processing an a SAML Token with a custom Conditions element.


Constructor Summary
SamlConditionsTest()
           
 
Method Summary
 void testSAML1Conditions()
          Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a custom Conditions statement.
 void testSAML2FutureTTLConditions()
          Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a Conditions statement that has a NotBefore "in the future".
 void testSAML2InvalidAfterConditions()
          Test that creates, sends and processes an unsigned SAML 2 authentication assertion with an (invalid) custom Conditions statement.
 void testSAML2InvalidBeforeConditions()
          Test that creates, sends and processes an unsigned SAML 2 authentication assertion with an (invalid) custom Conditions statement.
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamlConditionsTest

public SamlConditionsTest()
Method Detail

testSAML1Conditions

public void testSAML1Conditions()
                         throws java.lang.Exception
Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a custom Conditions statement.

Throws:
java.lang.Exception

testSAML2InvalidAfterConditions

public void testSAML2InvalidAfterConditions()
                                     throws java.lang.Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with an (invalid) custom Conditions statement.

Throws:
java.lang.Exception

testSAML2InvalidBeforeConditions

public void testSAML2InvalidBeforeConditions()
                                      throws java.lang.Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with an (invalid) custom Conditions statement.

Throws:
java.lang.Exception

testSAML2FutureTTLConditions

public void testSAML2FutureTTLConditions()
                                  throws java.lang.Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a Conditions statement that has a NotBefore "in the future".

Throws:
java.lang.Exception


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.