Package org.apache.wss4j.dom.common
Class CustomHandler
- java.lang.Object
-
- org.apache.wss4j.dom.handler.WSHandler
-
- org.apache.wss4j.dom.common.CustomHandler
-
public class CustomHandler extends WSHandler
A trivial extension of the WSHandler type for use in unit-testing.
-
-
Constructor Summary
Constructors Constructor Description CustomHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkResults(List<WSSecurityEngineResult> results, List<Integer> actions)
boolean
checkResultsAnyOrder(List<WSSecurityEngineResult> results, List<Integer> actions)
Object
getOption(String key)
String
getPassword(Object msgContext)
Object
getProperty(Object ctx, String key)
void
receive(List<Integer> actions, RequestData reqData)
void
send(Document doc, RequestData reqData, List<HandlerAction> actions, boolean request)
void
setOption(String key, Object option)
void
setPassword(Object msgContext, String password)
void
setProperty(Object ctx, String key, Object value)
void
signatureConfirmation(RequestData requestData, WSHandlerResult handlerResults)
-
Methods inherited from class org.apache.wss4j.dom.handler.WSHandler
checkReceiverResults, checkReceiverResultsAnyOrder, checkSignatureConfirmation, decodeAlgorithmSuite, decodeBooleanConfigValue, decodeDecryptionParameter, decodeEncryptionParameter, decodeFutureTimeToLive, decodePasswordType, decodeSignatureParameter, decodeSignatureParameter2, decodeTimeToLive, decodeUTParameter, doReceiverAction, doSenderAction, getCallbackHandler, getClassLoader, getPasswordCallbackHandler, getPasswordCB, getPasswordEncryptor, getString, getStringOption, loadCrypto, loadCryptoFromPropertiesFile, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto, loadSignatureVerificationCrypto
-
-
-
-
Method Detail
-
setProperty
public void setProperty(Object ctx, String key, Object value)
- Specified by:
setProperty
in classWSHandler
-
getProperty
public Object getProperty(Object ctx, String key)
- Specified by:
getProperty
in classWSHandler
-
setPassword
public void setPassword(Object msgContext, String password)
- Specified by:
setPassword
in classWSHandler
-
getPassword
public String getPassword(Object msgContext)
- Specified by:
getPassword
in classWSHandler
-
send
public void send(Document doc, RequestData reqData, List<HandlerAction> actions, boolean request) throws WSSecurityException
- Throws:
WSSecurityException
-
receive
public void receive(List<Integer> actions, RequestData reqData) throws WSSecurityException
- Throws:
WSSecurityException
-
signatureConfirmation
public void signatureConfirmation(RequestData requestData, WSHandlerResult handlerResults) throws WSSecurityException
- Throws:
WSSecurityException
-
checkResults
public boolean checkResults(List<WSSecurityEngineResult> results, List<Integer> actions) throws WSSecurityException
- Throws:
WSSecurityException
-
checkResultsAnyOrder
public boolean checkResultsAnyOrder(List<WSSecurityEngineResult> results, List<Integer> actions) throws WSSecurityException
- Throws:
WSSecurityException
-
-