|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.junit.Assert
org.apache.ws.security.saml.SamlNegativeTest
public class SamlNegativeTest
This is a set of test-cases where the SAML Assertion is altered in some way and so we expect an exception to be thrown when processing it.
| Constructor Summary | |
|---|---|
SamlNegativeTest()
|
|
| Method Summary | |
|---|---|
void |
testHOKNoKeyInfo()
Test that creates a signed SAML 1.1 authentication assertion that uses holder-of-key, but does not include a KeyInfo in the Subject, and hence will fail processing. |
void |
testHOKNotSigned()
Test that creates a SAML 1.1 authentication assertion that uses holder-of-key, but is not signed, and hence will fail processing. |
void |
testSAML1SignedKeyHolderSigModified()
Test that creates a signed SAML 1.1 Assertion using HOK, but then modifies the signature object by replacing the enveloped transform with the exclusive c14n transform. |
void |
testSAML2AuthnAssertionModified()
Test that creates, sends and processes a signed SAML 2 sender-vouches authentication assertion. |
void |
testSAML2SignedKeyHolderKeyModified()
Test that creates a signed SAML 2 Assertion using HOK, but then modifies the assertion. |
void |
testSAML2TrustFailure()
Test that creates, sends and processes a signed SAML 2 authentication assertion, but it is rejected in processing as the signature on the assertion is not trusted. |
| 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 |
|---|
public SamlNegativeTest()
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void testSAML2AuthnAssertionModified()
throws java.lang.Exception
java.lang.Exception
public void testSAML1SignedKeyHolderSigModified()
throws java.lang.Exception
java.lang.Exception
public void testSAML2SignedKeyHolderKeyModified()
throws java.lang.Exception
java.lang.Exception
public void testHOKNoKeyInfo()
throws java.lang.Exception
java.lang.Exception
public void testHOKNotSigned()
throws java.lang.Exception
java.lang.Exception
public void testSAML2TrustFailure()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||