Spring Web Services Framework

org.springframework.ws.soap.security.xwss.callback
Class MockValidationCallbackHandler

java.lang.Object
  extended by org.springframework.ws.soap.security.callback.AbstractCallbackHandler
      extended by 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 CertificateValidationCallbacks and PasswordValidationCallbacks, and throws an UnsupportedCallbackException for others

Since:
1.0.0
Author:
Arjen Poutsma

Field Summary
 
Fields inherited from class org.springframework.ws.soap.security.callback.AbstractCallbackHandler
logger
 
Constructor Summary
MockValidationCallbackHandler()
           
MockValidationCallbackHandler(boolean valid)
           
 
Method Summary
protected  void handleInternal(Callback callback)
          Template method that should be implemented by subclasses.
 void setValid(boolean valid)
           
 
Methods inherited from class org.springframework.ws.soap.security.callback.AbstractCallbackHandler
handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockValidationCallbackHandler

public MockValidationCallbackHandler()

MockValidationCallbackHandler

public MockValidationCallbackHandler(boolean valid)
Method Detail

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)

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.