Spring Web Services Framework

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

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.AcegiDigestPasswordValidationCallbackHandler
All Implemented Interfaces:
CallbackHandler, InitializingBean

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

public class AcegiDigestPasswordValidationCallbackHandler
extends AbstractWsPasswordCallbackHandler
implements InitializingBean

Callback handler that validates a password digest using an Acegi UserDetailsService. Logic based on Acegi's DigestProcessingFilter.

An Acegi UserDetailService is used to load UserDetails from. The digest of the password contained in this details object is then compared with the digest in the message.

Since:
1.5.0
Author:
Arjen Poutsma
See Also:
UserDetailsService, DigestProcessingFilter

Field Summary
 
Fields inherited from class org.springframework.ws.soap.security.callback.AbstractCallbackHandler
logger
 
Constructor Summary
AcegiDigestPasswordValidationCallbackHandler()
          Deprecated.  
 
Method Summary
 void afterPropertiesSet()
          Deprecated.  
protected  void handleCleanup(CleanupCallback callback)
          Deprecated. Invoked when a CleanupCallback is passed to AbstractCallbackHandler.handle(Callback[]).
protected  void handleUsernameToken(WSPasswordCallback callback)
          Deprecated. Invoked when the callback has a WSPasswordCallback.USERNAME_TOKEN usage.
protected  void handleUsernameTokenPrincipal(UsernameTokenPrincipalCallback callback)
          Deprecated. Invoked when a UsernameTokenPrincipalCallback is passed to AbstractCallbackHandler.handle(Callback[]).
 void setUserCache(UserCache userCache)
          Deprecated. Sets the users cache.
 void setUserDetailsService(UserDetailsService userDetailsService)
          Deprecated. Sets the Acegi user details service.
 
Methods inherited from class org.springframework.ws.soap.security.wss4j.callback.AbstractWsPasswordCallbackHandler
handleCustomToken, handleDecrypt, handleEncryptedKeyToken, handleInternal, handleKeyName, handleSecurityContextToken, handleSignature, handleUsernameTokenUnknown
 
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

AcegiDigestPasswordValidationCallbackHandler

public AcegiDigestPasswordValidationCallbackHandler()
Deprecated. 
Method Detail

setUserCache

public void setUserCache(UserCache userCache)
Deprecated. 
Sets the users cache. Not required, but can benefit performance.


setUserDetailsService

public void setUserDetailsService(UserDetailsService userDetailsService)
Deprecated. 
Sets the Acegi user details service. Required.


afterPropertiesSet

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

handleUsernameToken

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

This method is invoked when WSS4J needs the password to fill in or to verify a UsernameToken.

Default implementation throws an UnsupportedCallbackException.

Overrides:
handleUsernameToken in class AbstractWsPasswordCallbackHandler
Throws:
IOException
UnsupportedCallbackException

handleUsernameTokenPrincipal

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

Default implementation throws an UnsupportedCallbackException.

Overrides:
handleUsernameTokenPrincipal in class AbstractWsPasswordCallbackHandler
Throws:
IOException
UnsupportedCallbackException

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

Spring Web Services Framework

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