Class WCFUsernameTokenTest


  • public class WCFUsernameTokenTest
    extends Object
    A test-case for WSS-199 - "Add support for WCF non-standard Username Tokens" (see also WSS-148 - "WCF interop issue: Namespace not honored incase of attributes."). The issue is that WCF generated Username Tokens where the password type is namespace qualified (incorrectly). WSS-199 added the ability to process these Username Tokens.
    • Constructor Detail

      • WCFUsernameTokenTest

        public WCFUsernameTokenTest()
    • Method Detail

      • testNamespaceQualifiedTypeRejected

        @Test
        public void testNamespaceQualifiedTypeRejected()
                                                throws Exception
        Test that adds a UserNameToken with a namespace qualified type. This should fail as WSS4J rejects these tokens by default.
        Throws:
        Exception
      • testNamespaceQualifiedTypeAccepted

        @Test
        public void testNamespaceQualifiedTypeAccepted()
                                                throws Exception
        Test that adds a UserNameToken with a namespace qualified type. This should pass as WSS4J has been configured to accept these tokens.
        Throws:
        Exception