|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ws.soap.security.callback.AbstractCallbackHandler
org.springframework.ws.soap.security.wss4j.callback.AbstractWsPasswordCallbackHandler
org.springframework.ws.soap.security.wss4j.callback.SpringDigestPasswordValidationCallbackHandler
public class SpringDigestPasswordValidationCallbackHandler
Callback handler that validates a password digest using an Spring Security UserDetailsService. Logic
based on Spring Security's DigestProcessingFilter.
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.
UserDetailsService,
org.springframework.security.ui.digestauth.DigestProcessingFilter| Field Summary |
|---|
| Fields inherited from class org.springframework.ws.soap.security.callback.AbstractCallbackHandler |
|---|
logger |
| Constructor Summary | |
|---|---|
SpringDigestPasswordValidationCallbackHandler()
|
|
| Method Summary | |
|---|---|
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. |
| 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 |
|---|
public SpringDigestPasswordValidationCallbackHandler()
| Method Detail |
|---|
public void setUserCache(org.springframework.security.core.userdetails.UserCache userCache)
public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
protected void handleUsernameToken(org.apache.ws.security.WSPasswordCallback callback)
throws java.io.IOException,
javax.security.auth.callback.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 AbstractWsPasswordCallbackHandlerjava.io.IOException
javax.security.auth.callback.UnsupportedCallbackException
protected void handleUsernameTokenPrincipal(UsernameTokenPrincipalCallback callback)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
AbstractWsPasswordCallbackHandlerUsernameTokenPrincipalCallback is passed to AbstractCallbackHandler.handle(Callback[]).
Default implementation throws an UnsupportedCallbackException.
handleUsernameTokenPrincipal in class AbstractWsPasswordCallbackHandlerjava.io.IOException
javax.security.auth.callback.UnsupportedCallbackException
protected void handleCleanup(CleanupCallback callback)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
AbstractWsPasswordCallbackHandlerCleanupCallback is passed to AbstractCallbackHandler.handle(Callback[]).
Default implementation throws an UnsupportedCallbackException.
handleCleanup in class AbstractWsPasswordCallbackHandlerjava.io.IOException
javax.security.auth.callback.UnsupportedCallbackException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||