Package org.apache.wss4j.dom.misc
Class FaultCodeTest
- java.lang.Object
-
- org.apache.wss4j.dom.misc.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.
-
-
Constructor Summary
Constructors Constructor Description FaultCodeTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Callback[] callbacks)
void
testFailedAuthentication()
Test for the wsse:FailedAuthentication faultcode.void
testFailedCheck()
Test for the wsse:FailedCheck faultcode.void
testInvalidSecurity()
Test for the wsse:InvalidSecurity faultcode.void
testInvalidSecurityToken()
Test for the wsse:InvalidSecurityToken faultcode.void
testMessageExpired()
Test for the wsse:MessageExpired faultcode.void
testUnsupportedAlgorithm()
Test for the wsse:UnsupportedAlgorithm faultcode.
-
-
-
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
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
- Specified by:
handle
in interfaceCallbackHandler
- Throws:
IOException
UnsupportedCallbackException
-
-