Package com.levigo.jadice.server.ws
Class UserNamePasswordHandler
- java.lang.Object
-
- org.apache.wss4j.dom.handler.WSHandler
-
- org.apache.cxf.ws.security.wss4j.AbstractWSS4JInterceptor
-
- org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
-
- org.apache.cxf.ws.security.wss4j.AbstractUsernameTokenAuthenticatingInterceptor
-
- com.levigo.jadice.server.ws.UserNamePasswordHandler
-
- All Implemented Interfaces:
org.apache.cxf.binding.soap.interceptor.SoapInterceptor
,org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>
,org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
public class UserNamePasswordHandler extends org.apache.cxf.ws.security.wss4j.AbstractUsernameTokenAuthenticatingInterceptor
A class to handle username and password for a webservice request. It uses the spring securityAuthenticationManager
to verify the credentials. If no AuthenticationManager is present no authentication will be enforced.- See Also:
SecuredNodeWorkerFactory
-
-
Constructor Summary
Constructors Constructor Description UserNamePasswordHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkReceiverResultsAnyOrder(List<org.apache.wss4j.dom.engine.WSSecurityEngineResult> wsResult, List<Integer> actions)
protected Subject
createSubject(String name, String password, boolean isDigest, String nonce, String created)
org.springframework.security.authentication.AuthenticationManager
getAuthenticationManager()
void
handleMessage(org.apache.cxf.binding.soap.SoapMessage msg)
void
setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
-
Methods inherited from class org.apache.cxf.ws.security.wss4j.AbstractUsernameTokenAuthenticatingInterceptor
doCreateSecurityContext, doResults, getSecurityEngine, getSupportDigestPasswords, setSubject, setSupportDigestPasswords
-
Methods inherited from class org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
advanceBody, checkActions, computeAction, configureReplayCaches, getCallback, getCallback, getProperty, getReplayCache, isGET, isNonceCacheRequired, isSamlCacheRequired, isTimestampCacheRequired, setAlgorithmSuites, setIgnoreActions
-
Methods inherited from class org.apache.cxf.ws.security.wss4j.AbstractWSS4JInterceptor
getAdditionalInterceptors, getAfter, getBefore, getId, getOption, getPassword, getPhase, getProperties, getRoles, getUnderstoodHeaders, handleFault, isRequestor, loadCryptoFromPropertiesFile, postHandleMessage, setId, setPassword, setPhase, setProperties, setProperty, setProperty, translateProperties
-
Methods inherited from class org.apache.wss4j.dom.handler.WSHandler
checkReceiverResults, checkSignatureConfirmation, decodeAlgorithmSuite, decodeBooleanConfigValue, decodeDecryptionParameter, decodeEncryptionParameter, decodeFutureTimeToLive, decodePasswordType, decodeSignatureParameter, decodeSignatureParameter2, decodeTimeToLive, decodeUTParameter, doReceiverAction, doSenderAction, getCallbackHandler, getClassLoader, getPasswordCallbackHandler, getPasswordCB, getPasswordEncryptor, getString, getStringOption, loadCrypto, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto, loadSignatureVerificationCrypto
-
-
-
-
Method Detail
-
handleMessage
public void handleMessage(org.apache.cxf.binding.soap.SoapMessage msg) throws org.apache.cxf.interceptor.Fault
- Specified by:
handleMessage
in interfaceorg.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>
- Overrides:
handleMessage
in classorg.apache.cxf.ws.security.wss4j.AbstractUsernameTokenAuthenticatingInterceptor
- Throws:
org.apache.cxf.interceptor.Fault
-
checkReceiverResultsAnyOrder
protected boolean checkReceiverResultsAnyOrder(List<org.apache.wss4j.dom.engine.WSSecurityEngineResult> wsResult, List<Integer> actions)
- Overrides:
checkReceiverResultsAnyOrder
in classorg.apache.wss4j.dom.handler.WSHandler
-
createSubject
protected Subject createSubject(String name, String password, boolean isDigest, String nonce, String created) throws SecurityException
- Specified by:
createSubject
in classorg.apache.cxf.ws.security.wss4j.AbstractUsernameTokenAuthenticatingInterceptor
- Throws:
SecurityException
-
getAuthenticationManager
public org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()
-
setAuthenticationManager
public void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
-
-