org.springframework.ws.soap.security.xwss.callback.acegi
Class AcegiDigestPasswordValidationCallbackHandler
java.lang.Object
org.springframework.ws.soap.security.callback.AbstractCallbackHandler
org.springframework.ws.soap.security.xwss.callback.acegi.AcegiDigestPasswordValidationCallbackHandler
- All Implemented Interfaces:
- CallbackHandler, InitializingBean
public class AcegiDigestPasswordValidationCallbackHandler
- extends AbstractCallbackHandler
- 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.
This class only handles PasswordValidationCallbacks that contain a DigestPasswordRequest,
and throws an UnsupportedCallbackException for others.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
UserDetailsService,
PasswordValidationCallback,
PasswordValidationCallback.DigestPasswordRequest,
DigestProcessingFilter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AcegiDigestPasswordValidationCallbackHandler
public AcegiDigestPasswordValidationCallbackHandler()
setUserCache
public void setUserCache(UserCache userCache)
- Sets the users cache. Not required, but can benefit performance.
setUserDetailsService
public void setUserDetailsService(UserDetailsService userDetailsService)
- Sets the Acegi user details service. Required.
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
Exception
handleInternal
protected void handleInternal(Callback callback)
throws IOException,
UnsupportedCallbackException
- Handles
PasswordValidationCallbacks that contain a DigestPasswordRequest, and throws an
UnsupportedCallbackException for others
- Specified by:
handleInternal in class AbstractCallbackHandler
- Throws:
UnsupportedCallbackException - when the callback is not supported
IOException
Copyright © 2005-2008 The Spring Web Services Framework. All Rights Reserved.