public class SpringSecurityPasswordValidationCallbackHandler extends AbstractWsPasswordCallbackHandler implements org.springframework.beans.factory.InitializingBean
UserDetailsService.
An Spring Security UserDetailsService 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.
logger| Constructor and Description |
|---|
SpringSecurityPasswordValidationCallbackHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
handleCleanup(CleanupCallback callback)
Invoked when a
CleanupCallback is passed to AbstractCallbackHandler.handle(Callback[]). |
protected void |
handleUsernameToken(org.apache.ws.security.WSPasswordCallback callback)
Invoked when the callback has a
WSPasswordCallback.USERNAME_TOKEN usage. |
protected void |
handleUsernameTokenPrincipal(UsernameTokenPrincipalCallback callback)
Invoked when a
UsernameTokenPrincipalCallback is passed to AbstractCallbackHandler.handle(Callback[]). |
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.
|
handleCustomToken, handleDecrypt, handleInternal, handleSecretKey, handleSecurityContextToken, handleSignaturehandlepublic SpringSecurityPasswordValidationCallbackHandler()
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 handleUsernameToken(org.apache.ws.security.WSPasswordCallback callback)
throws IOException,
UnsupportedCallbackException
AbstractWsPasswordCallbackHandlerWSPasswordCallback.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.
handleUsernameToken in class AbstractWsPasswordCallbackHandlerIOExceptionUnsupportedCallbackExceptionprotected void handleUsernameTokenPrincipal(UsernameTokenPrincipalCallback callback) throws IOException, UnsupportedCallbackException
AbstractWsPasswordCallbackHandlerUsernameTokenPrincipalCallback is passed to AbstractCallbackHandler.handle(Callback[]).
Default implementation throws an UnsupportedCallbackException.
handleUsernameTokenPrincipal in class AbstractWsPasswordCallbackHandlerIOExceptionUnsupportedCallbackExceptionprotected void handleCleanup(CleanupCallback callback) throws IOException, UnsupportedCallbackException
AbstractWsPasswordCallbackHandlerCleanupCallback is passed to AbstractCallbackHandler.handle(Callback[]).
Default implementation throws an UnsupportedCallbackException.
handleCleanup in class AbstractWsPasswordCallbackHandlerIOExceptionUnsupportedCallbackException