Class SamlConditionsTest


  • public class SamlConditionsTest
    extends Object
    Test-case for sending and processing an a SAML Token with a custom Conditions element.
    • Constructor Detail

      • SamlConditionsTest

        public SamlConditionsTest()
    • 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
      • testSAML2Delegate

        @Test
        public void testSAML2Delegate()
                               throws Exception
        Throws:
        Exception