Package org.apache.wss4j.stax.test.saml
Class SamlConditionsTest
- java.lang.Object
-
- org.apache.wss4j.stax.test.AbstractTestBase
-
- org.apache.wss4j.stax.test.saml.SamlConditionsTest
-
public class SamlConditionsTest extends AbstractTestBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.wss4j.stax.test.AbstractTestBase
AbstractTestBase.TestSecurityEventListener
-
-
Field Summary
-
Fields inherited from class org.apache.wss4j.stax.test.AbstractTestBase
documentBuilderFactory, SECURED_DOCUMENT, TRANSFORMER_FACTORY, xmlInputFactory
-
-
Constructor Summary
Constructors Constructor Description SamlConditionsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testSAML1AudienceRestrictionSeparateRestrictionsValidation()
void
testSAML1AudienceRestrictionValidation()
void
testSAML1ConditionsInbound()
Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a custom Conditions statement.void
testSAML1ConditionsOutbound()
Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a custom Conditions statement.void
testSAML2AudienceRestriction()
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with an AudienceRestriction Elementvoid
testSAML2AudienceRestrictionSeparateRestrictions()
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with two AudienceRestriction Elementsvoid
testSAML2AudienceRestrictionValidation()
void
testSAML2FutureNotBefore()
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
testSAML2InvalidAfterConditionsInbound()
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with an (invalid) custom Conditions statement.void
testSAML2InvalidBeforeConditionsInbound()
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with an (invalid) custom Conditions statement.void
testSAML2OneTimeUse()
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a OneTimeUse Elementvoid
testSAML2ProxyRestriction()
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a ProxyRestriction Elementvoid
testSAML2StaleNotOnOrAfter()
-
Methods inherited from class org.apache.wss4j.stax.test.AbstractTestBase
doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurity, doInboundSecurityWithWSS4J, doInboundSecurityWithWSS4J_1, doInboundSecurityWithWSS4J_1, doOutboundSecurity, doOutboundSecurity, doOutboundSecurityWithWSS4J, doOutboundSecurityWithWSS4J_1, getJavaSpecificationVersion, getMessageContext, getXPath
-
-
-
-
Method Detail
-
testSAML1ConditionsOutbound
@Test public void testSAML1ConditionsOutbound() throws Exception
Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a custom Conditions statement.- Throws:
Exception
-
testSAML1ConditionsInbound
@Test public void testSAML1ConditionsInbound() throws Exception
Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a custom Conditions statement.- Throws:
Exception
-
testSAML2InvalidAfterConditionsInbound
@Test public void testSAML2InvalidAfterConditionsInbound() throws Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with an (invalid) custom Conditions statement.- Throws:
Exception
-
testSAML2StaleNotOnOrAfter
@Test public void testSAML2StaleNotOnOrAfter() throws Exception
- Throws:
Exception
-
testSAML2FutureNotBefore
@Test public void testSAML2FutureNotBefore() throws Exception
- Throws:
Exception
-
testSAML2InvalidBeforeConditionsInbound
@Test public void testSAML2InvalidBeforeConditionsInbound() throws Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with an (invalid) custom Conditions statement.- Throws:
Exception
-
testSAML2FutureTTLConditions
@Test public void testSAML2FutureTTLConditions() throws 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:
Exception
-
testSAML2OneTimeUse
@Test public void testSAML2OneTimeUse() throws Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a OneTimeUse Element- Throws:
Exception
-
testSAML2ProxyRestriction
@Test public void testSAML2ProxyRestriction() throws Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a ProxyRestriction Element- Throws:
Exception
-
testSAML2AudienceRestriction
@Test public void testSAML2AudienceRestriction() throws Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with an AudienceRestriction Element- Throws:
Exception
-
testSAML2AudienceRestrictionValidation
@Test public void testSAML2AudienceRestrictionValidation() throws Exception
- Throws:
Exception
-
testSAML1AudienceRestrictionValidation
@Test public void testSAML1AudienceRestrictionValidation() throws Exception
- Throws:
Exception
-
testSAML2AudienceRestrictionSeparateRestrictions
@Test public void testSAML2AudienceRestrictionSeparateRestrictions() throws Exception
Test that creates, sends and processes an unsigned SAML 2 authentication assertion with two AudienceRestriction Elements- Throws:
Exception
-
-