Spring Web Services Framework

org.springframework.ws.soap.security.wss4j.callback.acegi
Class AcegiPlainTextPasswordValidationCallbackHandler

java.lang.Object
  extended by org.springframework.ws.soap.security.callback.AbstractCallbackHandler
      extended by org.springframework.ws.soap.security.wss4j.callback.AbstractWsPasswordCallbackHandler
          extended by org.springframework.ws.soap.security.wss4j.callback.acegi.AcegiPlainTextPasswordValidationCallbackHandler
All Implemented Interfaces:
CallbackHandler, InitializingBean

Deprecated. As of Spring-WS 1.5, in favor of Spring Security

public class AcegiPlainTextPasswordValidationCallbackHandler
extends AbstractWsPasswordCallbackHandler
implements InitializingBean

Callback handler that validates a certificate uses an Acegi AuthenticationManager. Logic based on Acegi's BasicProcessingFilter.

This handler requires an Acegi AuthenticationManager to operate. It can be set using the authenticationManager property. An Acegi UsernamePasswordAuthenticationToken is created with the username as principal and password as credentials.

Since:
1.5.0
Author:
Arjen Poutsma
See Also:
UsernamePasswordAuthenticationToken, BasicProcessingFilter

Field Summary
 
Fields inherited from class org.springframework.ws.soap.security.callback.AbstractCallbackHandler
logger
 
Constructor Summary
AcegiPlainTextPasswordValidationCallbackHandler()
          Deprecated.  
 
Method Summary
 void afterPropertiesSet()
          Deprecated.  
protected  void handleCleanup(CleanupCallback callback)
          Deprecated. Invoked when a CleanupCallback is passed to AbstractCallbackHandler.handle(Callback[]).
protected  void handleUsernameTokenUnknown(WSPasswordCallback callback)
          Deprecated. Invoked when the callback has a WSPasswordCallback.USERNAME_TOKEN_UNKNOWN usage.
 void setAuthenticationManager(AuthenticationManager authenticationManager)
          Deprecated. Sets the Acegi authentication manager.
 void setIgnoreFailure(boolean ignoreFailure)
          Deprecated.  
 
Methods inherited from class org.springframework.ws.soap.security.wss4j.callback.AbstractWsPasswordCallbackHandler
handleCustomToken, handleDecrypt, handleEncryptedKeyToken, handleInternal, handleKeyName, handleSecurityContextToken, handleSignature, handleUsernameToken, handleUsernameTokenPrincipal
 
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

AcegiPlainTextPasswordValidationCallbackHandler

public AcegiPlainTextPasswordValidationCallbackHandler()
Deprecated. 
Method Detail

setAuthenticationManager

public void setAuthenticationManager(AuthenticationManager authenticationManager)
Deprecated. 
Sets the Acegi authentication manager. Required.


setIgnoreFailure

public void setIgnoreFailure(boolean ignoreFailure)
Deprecated. 

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Deprecated. 
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

handleCleanup

protected void handleCleanup(CleanupCallback callback)
                      throws IOException,
                             UnsupportedCallbackException
Deprecated. 
Description copied from class: AbstractWsPasswordCallbackHandler
Invoked when a CleanupCallback is passed to AbstractCallbackHandler.handle(Callback[]).

Default implementation throws an UnsupportedCallbackException.

Overrides:
handleCleanup in class AbstractWsPasswordCallbackHandler
Throws:
IOException
UnsupportedCallbackException

handleUsernameTokenUnknown

protected void handleUsernameTokenUnknown(WSPasswordCallback callback)
                                   throws IOException,
                                          UnsupportedCallbackException
Deprecated. 
Description copied from class: AbstractWsPasswordCallbackHandler
Invoked when the callback has a WSPasswordCallback.USERNAME_TOKEN_UNKNOWN usage.

This method is invoked for a not specified password type or a plain text password type. Only the password is set. The callback class now may check if the username and password match. If they don't match, the subclass should throw an exception.

Default implementation throws an UnsupportedCallbackException.

Overrides:
handleUsernameTokenUnknown in class AbstractWsPasswordCallbackHandler
Throws:
IOException
UnsupportedCallbackException

Spring Web Services Framework

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