org.apache.ws.security.saml
Class SignedSamlTokenHOKTest

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

public class SignedSamlTokenHOKTest
extends org.junit.Assert

Test-case for sending and processing a signed (holder-of-key) SAML Assertion. These tests also cover the case of using the credential information in the SAML Subject to sign the SOAP body.


Constructor Summary
SignedSamlTokenHOKTest()
           
 
Method Summary
 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 testSAML1AuthnAssertionIssuerSerial()
          Test that creates, sends and processes a signed SAML 1.1 authentication assertion, where the subject cert is referenced using IssuerSerial
 void testSAML1AuthnAssertionKeyValue()
          Test that creates, sends and processes a signed SAML 1.1 authentication assertion, where the subject cert is referenced using a Key Value
 void testSAML1AuthnAssertionTrust()
          Test that creates, sends and processes a signed SAML 1.1 authentication assertion.
 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 testSAML2AuthnAssertionKeyValue()
          Test that creates, sends and processes a signed SAML 2 authentication assertion, where the subject cert is referenced using a Key Value
 
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

SignedSamlTokenHOKTest

public SignedSamlTokenHOKTest()
                       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

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

testSAML1AuthnAssertionIssuerSerial

public void testSAML1AuthnAssertionIssuerSerial()
                                         throws java.lang.Exception
Test that creates, sends and processes a signed SAML 1.1 authentication assertion, where the subject cert is referenced using IssuerSerial

Throws:
java.lang.Exception

testSAML1AuthnAssertionKeyValue

public void testSAML1AuthnAssertionKeyValue()
                                     throws java.lang.Exception
Test that creates, sends and processes a signed SAML 1.1 authentication assertion, where the subject cert is referenced using a Key Value

Throws:
java.lang.Exception

testSAML2AuthnAssertionKeyValue

public void testSAML2AuthnAssertionKeyValue()
                                     throws java.lang.Exception
Test that creates, sends and processes a signed SAML 2 authentication assertion, where the subject cert is referenced using a Key Value

Throws:
java.lang.Exception

testSAML1AuthnAssertionTrust

public void testSAML1AuthnAssertionTrust()
                                  throws java.lang.Exception
Test that creates, sends and processes a signed SAML 1.1 authentication assertion. The difference is that we don't trust the user signature, but as we trust the signature of the issuer, we have (indirect) trust.

Throws:
java.lang.Exception


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