|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.security.handler.WSHandler
org.apache.cxf.ws.security.wss4j.AbstractWSS4JInterceptor
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
public class WSS4JInInterceptor
Performs WS-Security inbound actions.
| Field Summary | |
|---|---|
static String |
PRINCIPAL_RESULT
|
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 |
SIGNATURE_RESULT
|
static String |
TIMESTAMP_RESULT
|
static String |
VALIDATOR_MAP
|
| Fields inherited from class org.apache.ws.security.handler.WSHandler |
|---|
cryptos, secEngine |
| Constructor Summary | |
|---|---|
WSS4JInInterceptor()
|
|
WSS4JInInterceptor(boolean ignore)
|
|
WSS4JInInterceptor(Map<String,Object> properties)
|
|
| Method Summary | |
|---|---|
protected void |
advanceBody(org.apache.cxf.binding.soap.SoapMessage msg,
Node body)
|
protected void |
computeAction(org.apache.cxf.binding.soap.SoapMessage msg,
org.apache.ws.security.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.ws.security.handler.RequestData reqData,
int doAction,
org.apache.cxf.binding.soap.SoapMessage msg)
|
protected org.apache.cxf.security.SecurityContext |
createSecurityContext(Principal p)
|
protected org.apache.cxf.interceptor.security.SAMLSecurityContext |
createSecurityContext(Principal p,
List<String> roles)
|
protected org.apache.cxf.security.SecurityContext |
createSecurityContext(org.apache.cxf.binding.soap.SoapMessage msg,
Subject subject,
Principal p,
boolean useJAASSubject,
org.apache.ws.security.WSSecurityEngineResult wsResult,
boolean utWithCallbacks)
|
protected static org.apache.ws.security.WSSecurityEngine |
createSecurityEngine(Map<QName,Object> map)
|
protected void |
doResults(org.apache.cxf.binding.soap.SoapMessage msg,
String actor,
Element soapHeader,
Element soapBody,
List<org.apache.ws.security.WSSecurityEngineResult> wsResult)
|
protected void |
doResults(org.apache.cxf.binding.soap.SoapMessage msg,
String actor,
Element soapHeader,
Element soapBody,
List<org.apache.ws.security.WSSecurityEngineResult> wsResult,
boolean utWithCallbacks)
|
Collection<org.apache.cxf.phase.PhaseInterceptor<? extends org.apache.cxf.message.Message>> |
getAdditionalInterceptors()
|
protected CallbackHandler |
getCallback(org.apache.ws.security.handler.RequestData reqData,
int doAction)
|
protected CallbackHandler |
getCallback(org.apache.ws.security.handler.RequestData reqData,
int doAction,
boolean utWithCallbacks)
|
Object |
getProperty(Object msgContext,
String key)
|
protected org.apache.ws.security.cache.ReplayCache |
getReplayCache(org.apache.cxf.binding.soap.SoapMessage message,
String booleanKey,
String instanceKey)
Get a ReplayCache instance. |
protected org.apache.ws.security.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(int doAction,
org.apache.cxf.binding.soap.SoapMessage msg)
Is a Nonce Cache required, i.e. |
protected boolean |
isSamlCacheRequired(int doAction,
org.apache.cxf.binding.soap.SoapMessage msg)
Is a SAML Cache required, i.e. |
protected boolean |
isTimestampCacheRequired(int doAction,
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.ws.security.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)
|
| Methods inherited from class org.apache.cxf.ws.security.wss4j.AbstractWSS4JInterceptor |
|---|
getAfter, getBefore, getId, getOption, getPassword, getPhase, getProperties, getRoles, getUnderstoodHeaders, handleFault, isRequestor, loadCryptoFromPropertiesFile, postHandleMessage, setAfter, setBefore, setId, setPassword, setPhase, setProperties, setProperty, setProperty, translateProperties |
| Methods inherited from class org.apache.ws.security.handler.WSHandler |
|---|
checkReceiverResults, checkReceiverResultsAnyOrder, checkSignatureConfirmation, decodeAlgorithmSuite, decodeAllowUsernameTokenNoPassword, decodeBooleanConfigValue, decodeBSPCompliance, decodeCustomPasswordTypes, decodeDecryptionParameter, decodeEnableSignatureConfirmation, decodeEncryptionParameter, decodeFutureTimeToLive, decodeMustUnderstand, decodeNamespaceQualifiedPasswordTypes, decodePasswordType, decodePasswordTypeStrict, decodeRequireSignedEncryptedDataElements, decodeSignatureParameter, decodeSignatureParameter2, decodeTimestampPrecision, decodeTimestampStrict, decodeTimeToLive, decodeUseEncodedPasswords, decodeUseSingleCertificate, decodeUTParameter, doReceiverAction, doSenderAction, getCallbackHandler, getClassLoader, getPasswordCallbackHandler, getPasswordCB, getString, getStringOption, loadCrypto, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SAML_ROLE_ATTRIBUTENAME_DEFAULT
public static final String TIMESTAMP_RESULT
public static final String SIGNATURE_RESULT
public static final String PRINCIPAL_RESULT
public static final String PROCESSOR_MAP
public static final String VALIDATOR_MAP
public static final String SECURITY_PROCESSED
| Constructor Detail |
|---|
public WSS4JInInterceptor()
public WSS4JInInterceptor(boolean ignore)
public WSS4JInInterceptor(Map<String,Object> properties)
| Method Detail |
|---|
public Collection<org.apache.cxf.phase.PhaseInterceptor<? extends org.apache.cxf.message.Message>> getAdditionalInterceptors()
getAdditionalInterceptors in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>getAdditionalInterceptors in class AbstractWSS4JInterceptorpublic 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.Fault
protected void computeAction(org.apache.cxf.binding.soap.SoapMessage msg,
org.apache.ws.security.handler.RequestData reqData)
throws org.apache.ws.security.WSSecurityException
msg - reqData -
org.apache.ws.security.WSSecurityException
protected void configureReplayCaches(org.apache.ws.security.handler.RequestData reqData,
int doAction,
org.apache.cxf.binding.soap.SoapMessage msg)
throws org.apache.ws.security.WSSecurityException
org.apache.ws.security.WSSecurityException
protected boolean isNonceCacheRequired(int doAction,
org.apache.cxf.binding.soap.SoapMessage msg)
protected boolean isTimestampCacheRequired(int doAction,
org.apache.cxf.binding.soap.SoapMessage msg)
protected boolean isSamlCacheRequired(int doAction,
org.apache.cxf.binding.soap.SoapMessage msg)
protected void setAlgorithmSuites(org.apache.cxf.binding.soap.SoapMessage message,
org.apache.ws.security.handler.RequestData data)
throws org.apache.ws.security.WSSecurityException
org.apache.ws.security.WSSecurityException
protected void doResults(org.apache.cxf.binding.soap.SoapMessage msg,
String actor,
Element soapHeader,
Element soapBody,
List<org.apache.ws.security.WSSecurityEngineResult> wsResult)
throws SOAPException,
XMLStreamException,
org.apache.ws.security.WSSecurityException
SOAPException
XMLStreamException
org.apache.ws.security.WSSecurityException
protected void doResults(org.apache.cxf.binding.soap.SoapMessage msg,
String actor,
Element soapHeader,
Element soapBody,
List<org.apache.ws.security.WSSecurityEngineResult> wsResult,
boolean utWithCallbacks)
throws SOAPException,
XMLStreamException,
org.apache.ws.security.WSSecurityException
SOAPException
XMLStreamException
org.apache.ws.security.WSSecurityException
protected org.apache.cxf.security.SecurityContext createSecurityContext(org.apache.cxf.binding.soap.SoapMessage msg,
Subject subject,
Principal p,
boolean useJAASSubject,
org.apache.ws.security.WSSecurityEngineResult wsResult,
boolean utWithCallbacks)
protected void advanceBody(org.apache.cxf.binding.soap.SoapMessage msg,
Node body)
throws SOAPException,
XMLStreamException,
org.apache.ws.security.WSSecurityException
SOAPException
XMLStreamException
org.apache.ws.security.WSSecurityExceptionprotected org.apache.cxf.security.SecurityContext createSecurityContext(Principal p)
protected org.apache.cxf.interceptor.security.SAMLSecurityContext createSecurityContext(Principal p,
List<String> roles)
protected CallbackHandler getCallback(org.apache.ws.security.handler.RequestData reqData,
int doAction,
boolean utWithCallbacks)
throws org.apache.ws.security.WSSecurityException
org.apache.ws.security.WSSecurityException
protected CallbackHandler getCallback(org.apache.ws.security.handler.RequestData reqData,
int doAction)
throws org.apache.ws.security.WSSecurityException
org.apache.ws.security.WSSecurityExceptionprotected org.apache.ws.security.WSSecurityEngine getSecurityEngine(boolean utWithCallbacks)
protected static org.apache.ws.security.WSSecurityEngine createSecurityEngine(Map<QName,Object> map)
protected org.apache.ws.security.cache.ReplayCache getReplayCache(org.apache.cxf.binding.soap.SoapMessage message,
String booleanKey,
String instanceKey)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||