public class WSS4JInInterceptor extends AbstractWSS4JInterceptor
| Modifier and Type | Field and Description |
|---|---|
static String |
PROCESSOR_MAP |
static String |
SAML_ROLE_ATTRIBUTENAME_DEFAULT
This configuration tag specifies the default attribute name where the roles are present
The default is "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/role".
|
static String |
SECURITY_PROCESSED |
static String |
VALIDATOR_MAP |
| Constructor and Description |
|---|
WSS4JInInterceptor() |
WSS4JInInterceptor(boolean ignore) |
WSS4JInInterceptor(Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
advanceBody(org.apache.cxf.binding.soap.SoapMessage msg,
Node body) |
protected void |
checkActions(org.apache.cxf.binding.soap.SoapMessage msg,
List<org.apache.wss4j.dom.engine.WSSecurityEngineResult> wsResult,
List<Integer> actions) |
protected void |
computeAction(org.apache.cxf.binding.soap.SoapMessage msg,
org.apache.wss4j.dom.handler.RequestData reqData)
Do whatever is necessary to determine the action for the incoming message and
do whatever other setup work is necessary.
|
protected void |
configureReplayCaches(org.apache.wss4j.dom.handler.RequestData reqData,
List<Integer> actions,
org.apache.cxf.binding.soap.SoapMessage msg) |
protected void |
doResults(org.apache.cxf.binding.soap.SoapMessage msg,
String actor,
Element soapHeader,
Element soapBody,
org.apache.wss4j.dom.handler.WSHandlerResult wsResult,
boolean utWithCallbacks) |
protected CallbackHandler |
getCallback(org.apache.wss4j.dom.handler.RequestData reqData) |
protected CallbackHandler |
getCallback(org.apache.wss4j.dom.handler.RequestData reqData,
boolean utWithCallbacks) |
Object |
getProperty(Object msgContext,
String key) |
protected org.apache.wss4j.common.cache.ReplayCache |
getReplayCache(org.apache.cxf.binding.soap.SoapMessage message,
String booleanKey,
String instanceKey)
Get a ReplayCache instance.
|
protected org.apache.wss4j.dom.engine.WSSecurityEngine |
getSecurityEngine(boolean utWithCallbacks) |
void |
handleMessage(org.apache.cxf.binding.soap.SoapMessage msg) |
boolean |
isGET(org.apache.cxf.binding.soap.SoapMessage message) |
protected boolean |
isNonceCacheRequired(List<Integer> actions,
org.apache.cxf.binding.soap.SoapMessage msg)
Is a Nonce Cache required, i.e.
|
protected boolean |
isSamlCacheRequired(List<Integer> actions,
org.apache.cxf.binding.soap.SoapMessage msg)
Is a SAML Cache required, i.e.
|
protected boolean |
isTimestampCacheRequired(List<Integer> actions,
org.apache.cxf.binding.soap.SoapMessage msg)
Is a Timestamp cache required, i.e.
|
protected void |
setAlgorithmSuites(org.apache.cxf.binding.soap.SoapMessage message,
org.apache.wss4j.dom.handler.RequestData data)
Set a WSS4J AlgorithmSuite object on the RequestData context, to restrict the
algorithms that are allowed for encryption, signature, etc.
|
void |
setIgnoreActions(boolean i)
Setting this value to true means that WSS4J does not compare the "actions" that were processed against
the list of actions that were configured.
|
getAdditionalInterceptors, getAfter, getBefore, getId, getOption, getPassword, getPhase, getProperties, getRoles, getUnderstoodHeaders, handleFault, isRequestor, loadCryptoFromPropertiesFile, postHandleMessage, setId, setPassword, setPhase, setProperties, setProperty, setProperty, translatePropertiescheckReceiverResults, checkReceiverResultsAnyOrder, checkSignatureConfirmation, decodeAlgorithmSuite, decodeBooleanConfigValue, decodeDecryptionParameter, decodeEncryptionParameter, decodeFutureTimeToLive, decodePasswordType, decodeSignatureParameter, decodeSignatureParameter2, decodeTimeToLive, decodeUTParameter, doReceiverAction, doSenderAction, getCallbackHandler, getClassLoader, getPasswordCallbackHandler, getPasswordCB, getPasswordEncryptor, getString, getStringOption, loadCrypto, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto, loadSignatureVerificationCryptopublic static final String SAML_ROLE_ATTRIBUTENAME_DEFAULT
public static final String PROCESSOR_MAP
public static final String VALIDATOR_MAP
public static final String SECURITY_PROCESSED
public WSS4JInInterceptor()
public WSS4JInInterceptor(boolean ignore)
public void setIgnoreActions(boolean i)
public Object getProperty(Object msgContext, String key)
getProperty in class AbstractWSS4JInterceptorpublic final boolean isGET(org.apache.cxf.binding.soap.SoapMessage message)
public void handleMessage(org.apache.cxf.binding.soap.SoapMessage msg)
throws org.apache.cxf.interceptor.Fault
org.apache.cxf.interceptor.Faultprotected void checkActions(org.apache.cxf.binding.soap.SoapMessage msg,
List<org.apache.wss4j.dom.engine.WSSecurityEngineResult> wsResult,
List<Integer> actions)
throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionprotected void computeAction(org.apache.cxf.binding.soap.SoapMessage msg,
org.apache.wss4j.dom.handler.RequestData reqData)
throws org.apache.wss4j.common.ext.WSSecurityException
msg - reqData - org.apache.wss4j.common.ext.WSSecurityExceptionprotected void configureReplayCaches(org.apache.wss4j.dom.handler.RequestData reqData,
List<Integer> actions,
org.apache.cxf.binding.soap.SoapMessage msg)
throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionprotected boolean isNonceCacheRequired(List<Integer> actions, org.apache.cxf.binding.soap.SoapMessage msg)
protected boolean isTimestampCacheRequired(List<Integer> actions, org.apache.cxf.binding.soap.SoapMessage msg)
protected boolean isSamlCacheRequired(List<Integer> actions, org.apache.cxf.binding.soap.SoapMessage msg)
protected void setAlgorithmSuites(org.apache.cxf.binding.soap.SoapMessage message,
org.apache.wss4j.dom.handler.RequestData data)
throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionprotected void doResults(org.apache.cxf.binding.soap.SoapMessage msg,
String actor,
Element soapHeader,
Element soapBody,
org.apache.wss4j.dom.handler.WSHandlerResult wsResult,
boolean utWithCallbacks)
throws SOAPException,
XMLStreamException,
org.apache.wss4j.common.ext.WSSecurityException
SOAPExceptionXMLStreamExceptionorg.apache.wss4j.common.ext.WSSecurityExceptionprotected void advanceBody(org.apache.cxf.binding.soap.SoapMessage msg,
Node body)
throws SOAPException,
XMLStreamException,
org.apache.wss4j.common.ext.WSSecurityException
SOAPExceptionXMLStreamExceptionorg.apache.wss4j.common.ext.WSSecurityExceptionprotected CallbackHandler getCallback(org.apache.wss4j.dom.handler.RequestData reqData, boolean utWithCallbacks) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionprotected CallbackHandler getCallback(org.apache.wss4j.dom.handler.RequestData reqData) throws org.apache.wss4j.common.ext.WSSecurityException, TokenStoreException
org.apache.wss4j.common.ext.WSSecurityExceptionTokenStoreExceptionprotected org.apache.wss4j.dom.engine.WSSecurityEngine getSecurityEngine(boolean utWithCallbacks)
protected org.apache.wss4j.common.cache.ReplayCache getReplayCache(org.apache.cxf.binding.soap.SoapMessage message,
String booleanKey,
String instanceKey)
throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionApache CXF