Class UsernameTokenTest

    • Constructor Detail

      • UsernameTokenTest

        public UsernameTokenTest()
    • Method Detail

      • testDefaultConfigurationInbound

        @Test
        public void testDefaultConfigurationInbound()
                                             throws Exception
        Throws:
        Exception
      • testWrongUsername

        @Test
        public void testWrongUsername()
                               throws Exception
        Throws:
        Exception
      • testInboundPW_TEXT

        @Test
        public void testInboundPW_TEXT()
                                throws Exception
        Throws:
        Exception
      • testReusedNonce

        @Test
        public void testReusedNonce​(@TempDir
                                    Path tempDir)
                             throws Exception
        Throws:
        Exception
      • testOldUsernameToken

        @Test
        public void testOldUsernameToken()
                                  throws Exception
        This is a test for processing an "old" UsernameToken, i.e. one with a "Created" element that is out of date
        Throws:
        Exception
      • testNearFutureCreated

        @Test
        public void testNearFutureCreated()
                                   throws Exception
        This is a test for processing a UsernameToken where the "Created" element is in the (near) future. It should be accepted by default when it is created 30 seconds in the future.
        Throws:
        Exception
      • testFutureCreated

        @Test
        public void testFutureCreated()
                               throws Exception
        This is a test for processing a UsernameToken where the "Created" element is in the future. A UsernameToken that is 120 seconds in the future should be rejected by default.
        Throws:
        Exception
      • testDefaultConfigurationOutbound

        @Test
        public void testDefaultConfigurationOutbound()
                                              throws Exception
        Throws:
        Exception
      • testOutboundPW_NONE

        @Test
        public void testOutboundPW_NONE()
                                 throws Exception
        Throws:
        Exception
      • testOutboundPW_TEXT

        @Test
        public void testOutboundPW_TEXT()
                                 throws Exception
        Throws:
        Exception
      • testOutboundPW_TEXT_withEmptyPassword

        @ParameterizedTest
        @ValueSource(strings={"transmitter","sender","randomUsername"})
        public void testOutboundPW_TEXT_withEmptyPassword​(String transmitter)
                                                   throws Exception
        Throws:
        Exception
      • testOutboundSign

        @Test
        public void testOutboundSign()
                              throws Exception
        Throws:
        Exception
      • testInboundSign

        @Test
        public void testInboundSign()
                             throws Exception
        Throws:
        Exception
      • testInboundOutboundPW_NONE

        @Test
        public void testInboundOutboundPW_NONE()
                                        throws Exception
        Throws:
        Exception
      • testInboundTextNonceCreated

        @Test
        public void testInboundTextNonceCreated()
                                         throws Exception
        Throws:
        Exception
      • testOutboundTextNonceCreated

        @Test
        public void testOutboundTextNonceCreated()
                                          throws Exception
        Throws:
        Exception
      • testPropertiesOutbound

        @Test
        public void testPropertiesOutbound()
                                    throws Exception
        Throws:
        Exception
      • testPropertiesInbound

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