org.springframework.ws.soap.security.xwss.callback
Class MockValidationCallbackHandler
java.lang.Object
org.springframework.ws.soap.security.callback.AbstractCallbackHandler
org.springframework.ws.soap.security.xwss.callback.MockValidationCallbackHandler
- All Implemented Interfaces:
- CallbackHandler
public class MockValidationCallbackHandler
- extends AbstractCallbackHandler
Mock implementation of of callback handler that accepts all password and certificate validation callbacks.
If the valid
property is set to true
(the default), this handler simply accepts and
validates every password or certificate validation callback that is passed to it.
This class handles CertificateValidationCallback
s and PasswordValidationCallback
s, and
throws an UnsupportedCallbackException
for others
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
Method Summary |
protected void |
handleInternal(Callback callback)
Template method that should be implemented by subclasses. |
void |
setValid(boolean valid)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockValidationCallbackHandler
public MockValidationCallbackHandler()
MockValidationCallbackHandler
public MockValidationCallbackHandler(boolean valid)
handleInternal
protected void handleInternal(Callback callback)
throws IOException,
UnsupportedCallbackException
- Description copied from class:
AbstractCallbackHandler
- Template method that should be implemented by subclasses.
- Specified by:
handleInternal
in class AbstractCallbackHandler
- Throws:
IOException
UnsupportedCallbackException
setValid
public void setValid(boolean valid)
Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.