Class FaultCodeTest

  • All Implemented Interfaces:
    CallbackHandler

    public class FaultCodeTest
    extends Object
    implements CallbackHandler
    WS-Security Test Case for fault codes. The SOAP Message Security specification 1.1 defines standard fault codes and fault strings for error propagation.
    • Method Detail

      • testFailedCheck

        @Test
        public void testFailedCheck()
                             throws Exception
        Test for the wsse:FailedCheck faultcode. This will fail due to a bad password in the callback handler.
        Throws:
        Exception
      • testUnsupportedAlgorithm

        @Test
        public void testUnsupportedAlgorithm()
                                      throws Exception
        Test for the wsse:UnsupportedAlgorithm faultcode. This will fail due to the argument passed to getCipherInstance.
        Throws:
        Exception
      • testMessageExpired

        @Test
        public void testMessageExpired()
                                throws Exception
        Test for the wsse:MessageExpired faultcode. This will fail due to the argument passed to setTimeToLive.
        Throws:
        Exception
      • testFailedAuthentication

        @Test
        public void testFailedAuthentication()
                                      throws Exception
        Test for the wsse:FailedAuthentication faultcode. This will fail due to a bad password in the callback handler.
        Throws:
        Exception
      • testInvalidSecurityToken

        @Test
        public void testInvalidSecurityToken()
                                      throws Exception
        Test for the wsse:InvalidSecurityToken faultcode. This will fail due to the fact that a null username is used.
        Throws:
        Exception
      • testInvalidSecurity

        @Test
        public void testInvalidSecurity()
                                 throws Exception
        Test for the wsse:InvalidSecurity faultcode.
        Throws:
        Exception