Class ReplayTest


  • public class ReplayTest
    extends Object
    Some test-cases for replay attacks.
    • Method Detail

      • testReplayedTimestamp

        @Test
        public void testReplayedTimestamp()
                                   throws Exception
        Throws:
        Exception
      • testEhCacheReplayedTimestamp

        @Test
        public void testEhCacheReplayedTimestamp()
                                          throws Exception
        Throws:
        Exception
      • testReplayedTimestampBelowSignature

        @Test
        public void testReplayedTimestampBelowSignature()
                                                 throws Exception
        Throws:
        Exception
      • testEhCacheReplayedTimestampBelowSignature

        @Test
        public void testEhCacheReplayedTimestampBelowSignature()
                                                        throws Exception
        Throws:
        Exception
      • testReplayedTimestampNoExpires

        @Test
        public void testReplayedTimestampNoExpires()
                                            throws Exception
        Throws:
        Exception
      • testEhCacheReplayedTimestampNoExpires

        @Test
        public void testEhCacheReplayedTimestampNoExpires()
                                                   throws Exception
        Throws:
        Exception
      • testReplayedUsernameToken

        @Test
        public void testReplayedUsernameToken()
                                       throws Exception
        Throws:
        Exception
      • testEhCacheReplayedUsernameToken

        @Test
        public void testEhCacheReplayedUsernameToken()
                                              throws Exception
        Throws:
        Exception
      • testEhCacheReplayedSAML2

        @Test
        public void testEhCacheReplayedSAML2()
                                      throws Exception
        Test that creates, sends and processes an unsigned SAML 2 authentication assertion. This is just a sanity test to make sure that it is possible to send the SAML token twice, as no "OneTimeUse" Element is defined there is no problem with replaying it. with a OneTimeUse Element
        Throws:
        Exception
      • testEhCacheReplayedSAML2OneTimeUse

        @Test
        public void testEhCacheReplayedSAML2OneTimeUse()
                                                throws Exception
        Test that creates, sends and processes an unsigned SAML 2 authentication assertion with a OneTimeUse Element
        Throws:
        Exception