public class SpringDigestPasswordValidationCallbackHandler extends AbstractCallbackHandler implements org.springframework.beans.factory.InitializingBean
UserDetailsService. Logic based on
Spring Security's DigestProcessingFilter.
An Spring Security 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.
UserDetailsService,
PasswordValidationCallback,
PasswordValidationCallback.DigestPasswordRequestlogger| Constructor and Description |
|---|
SpringDigestPasswordValidationCallbackHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
handleInternal(Callback callback)
Handles
PasswordValidationCallbacks that contain a DigestPasswordRequest, and throws an
UnsupportedCallbackException for others |
void |
setUserCache(org.springframework.security.core.userdetails.UserCache userCache)
Sets the users cache.
|
void |
setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
Sets the Spring Security user details service.
|
handlepublic SpringDigestPasswordValidationCallbackHandler()
public void setUserCache(org.springframework.security.core.userdetails.UserCache userCache)
public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected void handleInternal(Callback callback) throws IOException, UnsupportedCallbackException
PasswordValidationCallbacks that contain a DigestPasswordRequest, and throws an
UnsupportedCallbackException for othershandleInternal in class AbstractCallbackHandlerUnsupportedCallbackException - when the callback is not supportedIOExceptionCopyright © 2023 VMware, Inc.. All rights reserved.