Package org.apache.cxf.ws.security.wss4j
Class PolicyBasedWSS4JInInterceptor
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.PolicyBasedWSS4JInInterceptor
- 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>
-
Field Summary
Fields inherited from class org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
PROCESSOR_MAP, SAML_ROLE_ATTRIBUTENAME_DEFAULT, SECURITY_PROCESSED, VALIDATOR_MAPFields inherited from class org.apache.wss4j.dom.handler.WSHandler
cryptos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcomputeAction(org.apache.cxf.binding.soap.SoapMessage message, org.apache.wss4j.dom.handler.RequestData data) Do whatever is necessary to determine the action for the incoming message and do whatever other setup work is necessary.protected voiddoResults(org.apache.cxf.binding.soap.SoapMessage msg, String actor, Element soapHeader, Element soapBody, org.apache.wss4j.dom.handler.WSHandlerResult results, boolean utWithCallbacks) voidhandleMessage(org.apache.cxf.binding.soap.SoapMessage msg) protected booleanisNonceCacheRequired(List<Integer> actions, org.apache.cxf.binding.soap.SoapMessage msg) Is a Nonce Cache required, i.e.protected booleanisSamlCacheRequired(List<Integer> actions, org.apache.cxf.binding.soap.SoapMessage msg) Is a SAML Cache required, i.e.protected booleanisTimestampCacheRequired(List<Integer> actions, org.apache.cxf.binding.soap.SoapMessage msg) Is a Timestamp cache required, i.e.protected voidsetAlgorithmSuites(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.Methods inherited from class org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
advanceBody, checkActions, configureReplayCaches, getCallback, getCallback, getProperty, getReplayCache, getSecurityEngine, isGET, setIgnoreActionsMethods 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, translatePropertiesMethods 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, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto, loadSignatureVerificationCrypto
-
Constructor Details
-
PolicyBasedWSS4JInInterceptor
public PolicyBasedWSS4JInInterceptor()
-
-
Method Details
-
handleMessage
public void handleMessage(org.apache.cxf.binding.soap.SoapMessage msg) throws org.apache.cxf.interceptor.Fault - Specified by:
handleMessagein interfaceorg.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>- Overrides:
handleMessagein classWSS4JInInterceptor- Throws:
org.apache.cxf.interceptor.Fault
-
isNonceCacheRequired
protected boolean isNonceCacheRequired(List<Integer> actions, org.apache.cxf.binding.soap.SoapMessage msg) Is a Nonce Cache required, i.e. are we expecting a UsernameToken- Overrides:
isNonceCacheRequiredin classWSS4JInInterceptor
-
isTimestampCacheRequired
protected boolean isTimestampCacheRequired(List<Integer> actions, org.apache.cxf.binding.soap.SoapMessage msg) Is a Timestamp cache required, i.e. are we expecting a Timestamp- Overrides:
isTimestampCacheRequiredin classWSS4JInInterceptor
-
isSamlCacheRequired
protected boolean isSamlCacheRequired(List<Integer> actions, org.apache.cxf.binding.soap.SoapMessage msg) Is a SAML Cache required, i.e. are we expecting a SAML Token- Overrides:
isSamlCacheRequiredin classWSS4JInInterceptor
-
setAlgorithmSuites
protected void setAlgorithmSuites(org.apache.cxf.binding.soap.SoapMessage message, org.apache.wss4j.dom.handler.RequestData data) throws org.apache.wss4j.common.ext.WSSecurityException Set a WSS4J AlgorithmSuite object on the RequestData context, to restrict the algorithms that are allowed for encryption, signature, etc.- Overrides:
setAlgorithmSuitesin classWSS4JInInterceptor- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
computeAction
protected void computeAction(org.apache.cxf.binding.soap.SoapMessage message, org.apache.wss4j.dom.handler.RequestData data) throws org.apache.wss4j.common.ext.WSSecurityException Description copied from class:WSS4JInInterceptorDo whatever is necessary to determine the action for the incoming message and do whatever other setup work is necessary.- Overrides:
computeActionin classWSS4JInInterceptor- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
doResults
protected void doResults(org.apache.cxf.binding.soap.SoapMessage msg, String actor, Element soapHeader, Element soapBody, org.apache.wss4j.dom.handler.WSHandlerResult results, boolean utWithCallbacks) throws jakarta.xml.soap.SOAPException, XMLStreamException, org.apache.wss4j.common.ext.WSSecurityException - Overrides:
doResultsin classWSS4JInInterceptor- Throws:
jakarta.xml.soap.SOAPExceptionXMLStreamExceptionorg.apache.wss4j.common.ext.WSSecurityException
-