org.apache.servicemix.soap.handlers.security
Class WSSecurityHandler
java.lang.Object
org.apache.ws.security.handler.WSHandler
org.apache.servicemix.soap.handlers.security.WSSecurityHandler
- All Implemented Interfaces:
- Handler
public class WSSecurityHandler
- extends org.apache.ws.security.handler.WSHandler
- implements Handler
WS-Security handler.
This handler is heavily based on xfire-ws-security project.
| Fields inherited from class org.apache.ws.security.handler.WSHandler |
cryptos, DONE, secEngine |
| Methods inherited from class org.apache.ws.security.handler.WSHandler |
checkReceiverResults, checkSignatureConfirmation, decodeCustomPasswordTypes, decodeDecryptionParameter, decodeEnableSignatureConfirmation, decodeEncryptionParameter, decodeMustUnderstand, decodeSignatureParameter, decodeSignatureParameter2, decodeTimestampPrecision, decodeTimestampStrict, decodeTimeToLive, decodeUTParameter, doReceiverAction, doSenderAction, getClassLoader, getPassword, getPasswordCB, getString, getStringOption, verifyTimestamp, verifyTrust |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSSecurityHandler
public WSSecurityHandler()
getAuthenticationService
public AuthenticationService getAuthenticationService()
- Returns:
- the authenticationService
setAuthenticationService
public void setAuthenticationService(AuthenticationService authenticationService)
- Parameters:
authenticationService - the authenticationService to set
getUsername
public String getUsername()
- Returns:
- the username
setUsername
public void setUsername(String username)
- Parameters:
username - the username to set
getCrypto
public org.apache.ws.security.components.crypto.Crypto getCrypto()
- Returns:
- the crypto
setCrypto
public void setCrypto(org.apache.ws.security.components.crypto.Crypto crypto)
- Parameters:
crypto - the crypto to set
getActor
public String getActor()
- Returns:
- the actor
setActor
public void setActor(String actor)
- Parameters:
actor - the actor to set
getDomain
public String getDomain()
- Returns:
- the domain
setDomain
public void setDomain(String domain)
- Parameters:
domain - the domain to set
getReceiveAction
public String getReceiveAction()
- Returns:
- the receiveAction
setReceiveAction
public void setReceiveAction(String receiveAction)
- Parameters:
receiveAction - the receiveAction to set
getSendAction
public String getSendAction()
- Returns:
- the action
setSendAction
public void setSendAction(String action)
- Parameters:
action - the action to set
isRequired
public boolean isRequired()
- Specified by:
isRequired in interface Handler
- Returns:
- the required
requireDOM
public boolean requireDOM()
- Specified by:
requireDOM in interface Handler
setRequired
public void setRequired(boolean required)
- Specified by:
setRequired in interface Handler
- Parameters:
required - the required to set
getOption
public Object getOption(String key)
- Specified by:
getOption in class org.apache.ws.security.handler.WSHandler
setOption
public void setOption(String key,
Object value)
getPassword
public String getPassword(Object msgContext)
- Specified by:
getPassword in class org.apache.ws.security.handler.WSHandler
getProperty
public Object getProperty(Object msgContext,
String key)
- Specified by:
getProperty in class org.apache.ws.security.handler.WSHandler
setPassword
public void setPassword(Object msgContext,
String password)
- Specified by:
setPassword in class org.apache.ws.security.handler.WSHandler
setProperty
public void setProperty(Object msgContext,
String key,
Object value)
- Specified by:
setProperty in class org.apache.ws.security.handler.WSHandler
loadDecryptionCrypto
protected org.apache.ws.security.components.crypto.Crypto loadDecryptionCrypto(org.apache.ws.security.handler.RequestData reqData)
throws org.apache.ws.security.WSSecurityException
- Overrides:
loadDecryptionCrypto in class org.apache.ws.security.handler.WSHandler
- Throws:
org.apache.ws.security.WSSecurityException
loadEncryptionCrypto
protected org.apache.ws.security.components.crypto.Crypto loadEncryptionCrypto(org.apache.ws.security.handler.RequestData reqData)
throws org.apache.ws.security.WSSecurityException
- Overrides:
loadEncryptionCrypto in class org.apache.ws.security.handler.WSHandler
- Throws:
org.apache.ws.security.WSSecurityException
loadSignatureCrypto
public org.apache.ws.security.components.crypto.Crypto loadSignatureCrypto(org.apache.ws.security.handler.RequestData reqData)
throws org.apache.ws.security.WSSecurityException
- Overrides:
loadSignatureCrypto in class org.apache.ws.security.handler.WSHandler
- Throws:
org.apache.ws.security.WSSecurityException
onReceive
public void onReceive(Context context)
throws Exception
- Specified by:
onReceive in interface Handler
- Throws:
Exception
onReply
public void onReply(Context context)
throws Exception
- Specified by:
onReply in interface Handler
- Throws:
Exception
onFault
public void onFault(Context context)
throws Exception
- Specified by:
onFault in interface Handler
- Throws:
Exception
onSend
public void onSend(Context context)
throws Exception
- Specified by:
onSend in interface Handler
- Throws:
Exception
onAnswer
public void onAnswer(Context context)
- Specified by:
onAnswer in interface Handler
checkUser
protected void checkUser(String user,
Object credentials)
throws GeneralSecurityException
- Throws:
GeneralSecurityException
getKeystore
public String getKeystore()
- Returns:
- the keystore
setKeystore
public void setKeystore(String keystore)
- Parameters:
keystore - the keystore to set
init
protected void init(Context context)
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.