org.apache.ws.security.saml
Class SamlTokenSVTest

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

public class SamlTokenSVTest
extends org.junit.Assert

Test-case for sending and processing a signed (sender vouches) SAML Assertion.


Constructor Summary
SamlTokenSVTest()
           
 
Method Summary
 void testDefaultIssuerClass()
          Test the default issuer class as specified in SAMLIssuerFactory.
 void testSAML1AttrAssertion()
          Test that creates, sends and processes a signed SAML 1.1 attribute assertion.
 void testSAML1AuthnAssertion()
          Test that creates, sends and processes a signed SAML 1.1 authentication assertion.
 void testSAML1AuthnAssertionFromProperties()
          Test that creates, sends and processes a signed SAML 1 authentication assertion, where the configuration is loaded from a properties file
 void testSAML2AttrAssertion()
          Test that creates, sends and processes a signed SAML 2 attribute assertion.
 void testSAML2AuthnAssertion()
          Test that creates, sends and processes a signed SAML 2 authentication assertion.
 void testWSS62()
          A test for WSS-62: "the crypto file not being retrieved in the doReceiverAction method for the Saml Signed Token" https://issues.apache.org/jira/browse/WSS-62
 
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

SamlTokenSVTest

public SamlTokenSVTest()
                throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

testSAML1AuthnAssertion

public void testSAML1AuthnAssertion()
                             throws java.lang.Exception
Test that creates, sends and processes a signed SAML 1.1 authentication assertion.

Throws:
java.lang.Exception

testSAML1AuthnAssertionFromProperties

public void testSAML1AuthnAssertionFromProperties()
                                           throws java.lang.Exception
Test that creates, sends and processes a signed SAML 1 authentication assertion, where the configuration is loaded from a properties file

Throws:
java.lang.Exception

testSAML1AttrAssertion

public void testSAML1AttrAssertion()
                            throws java.lang.Exception
Test that creates, sends and processes a signed SAML 1.1 attribute assertion.

Throws:
java.lang.Exception

testSAML2AuthnAssertion

public void testSAML2AuthnAssertion()
                             throws java.lang.Exception
Test that creates, sends and processes a signed SAML 2 authentication assertion.

Throws:
java.lang.Exception

testSAML2AttrAssertion

public void testSAML2AttrAssertion()
                            throws java.lang.Exception
Test that creates, sends and processes a signed SAML 2 attribute assertion.

Throws:
java.lang.Exception

testDefaultIssuerClass

public void testDefaultIssuerClass()
                            throws java.lang.Exception
Test the default issuer class as specified in SAMLIssuerFactory. The configuration file "saml3.saml_sv_noissuer.properties" has no "org.apache.ws.security.saml.issuerClass" property, and so the default value is used (A bad value was previously used for the default value).

Throws:
java.lang.Exception

testWSS62

public void testWSS62()
               throws java.lang.Exception
A test for WSS-62: "the crypto file not being retrieved in the doReceiverAction method for the Saml Signed Token" https://issues.apache.org/jira/browse/WSS-62

Throws:
java.lang.Exception


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