Package org.apache.wss4j.dom.saml
Class SamlConditionsTest
- java.lang.Object
-
- org.apache.wss4j.dom.saml.SamlConditionsTest
-
public class SamlConditionsTest extends Object
Test-case for sending and processing an a SAML Token with a custom Conditions element.
-
-
Constructor Summary
Constructors Constructor Description SamlConditionsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testSAML1AudienceRestrictionVerification()
void
testSAML1Conditions()
Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a custom Conditions statement.void
testSAML1StaleIssueInstant()
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
testSAML2AudienceRestrictionSeparateRestrictionsValidation()
void
testSAML2AudienceRestrictionVerification()
void
testSAML2Delegate()
void
testSAML2FutureIssueInstant()
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
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.void
testSAML2NoNotOnOrAfter()
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
testSAML2StaleIssueInstant()
void
testSAML2StaleIssueInstantButWithNotOnOrAfter()
void
testSAML2StaleNotOnOrAfter()
-
-
-
Method Detail
-
testSAML1Conditions
@Test public void testSAML1Conditions() throws Exception
Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion with a custom Conditions statement.- Throws:
Exception
-
testSAML2InvalidAfterConditions
@Test public void testSAML2InvalidAfterConditions() 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
-
testSAML2FutureIssueInstant
@Test public void testSAML2FutureIssueInstant() throws Exception
- Throws:
Exception
-
testSAML2StaleIssueInstant
@Test public void testSAML2StaleIssueInstant() throws Exception
- Throws:
Exception
-
testSAML2NoNotOnOrAfter
@Test public void testSAML2NoNotOnOrAfter() throws Exception
- Throws:
Exception
-
testSAML2StaleIssueInstantButWithNotOnOrAfter
@Test public void testSAML2StaleIssueInstantButWithNotOnOrAfter() throws Exception
- Throws:
Exception
-
testSAML1StaleIssueInstant
@Test public void testSAML1StaleIssueInstant() throws Exception
- Throws:
Exception
-
testSAML2InvalidBeforeConditions
@Test public void testSAML2InvalidBeforeConditions() 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
-
testSAML2AudienceRestrictionVerification
@Test public void testSAML2AudienceRestrictionVerification() throws Exception
- Throws:
Exception
-
testSAML1AudienceRestrictionVerification
@Test public void testSAML1AudienceRestrictionVerification() 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
-
testSAML2AudienceRestrictionSeparateRestrictionsValidation
@Test public void testSAML2AudienceRestrictionSeparateRestrictionsValidation() throws Exception
- Throws:
Exception
-
-