public class SimplePasswordValidationCallbackHandler extends AbstractWsPasswordCallbackHandler implements org.springframework.beans.factory.InitializingBean
Properties
object. Password
validation is done on a case-sensitive basis.setUsers(java.util.Properties)
logger
Constructor and Description |
---|
SimplePasswordValidationCallbackHandler() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
handleUsernameToken(org.apache.wss4j.common.ext.WSPasswordCallback callback)
Invoked when the callback has a
WSPasswordCallback.USERNAME_TOKEN usage. |
void |
setUsers(Properties users)
Sets the users to validate against.
|
void |
setUsersMap(Map<String,String> users) |
handleCleanup, handleCustomToken, handleDecrypt, handleInternal, handleSecretKey, handleSecurityContextToken, handleSignature, handleUsernameTokenPrincipal
handle
public SimplePasswordValidationCallbackHandler()
public void setUsers(Properties users)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void handleUsernameToken(org.apache.wss4j.common.ext.WSPasswordCallback callback) throws IOException, UnsupportedCallbackException
AbstractWsPasswordCallbackHandler
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
.
handleUsernameToken
in class AbstractWsPasswordCallbackHandler
IOException
UnsupportedCallbackException
Copyright © 2020 Pivotal Software. All rights reserved.