From e842de9be4ca8e98efc936561a929895c42924fd Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Wed, 10 Nov 2010 10:23:48 +0000 Subject: [PATCH] SWS-648 - Document Spring-WS Security exception handling --- src/docbkx/security.xml | 48 +++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/src/docbkx/security.xml b/src/docbkx/security.xml index f58bd220..f695e18f 100644 --- a/src/docbkx/security.xml +++ b/src/docbkx/security.xml @@ -13,9 +13,7 @@ Authentication - This is the process of determining whether a - principal - is who they claim to be. + This is the process of determining whether a principal is who they claim to be. In this context, a "principal" generally means a user, device or some other system which can perform an action in your application. @@ -31,12 +29,10 @@ Encryption and Decryption - Encryption - is the process of transforming data into a form that is impossible to + Encryption is the process of transforming data into a form that is impossible to read without the appropriate key. It is mainly used to keep information hidden from anyone for whom it is not intended. - Decryption - is the reverse of encryption; it is the process of transforming of + Decryption is the reverse of encryption; it is the process of transforming of encrypted data back into an readable form. @@ -1092,6 +1088,36 @@ +
+ Security Exception Handling + + When an securement or validation action fails, the XwsSecurityInterceptor + will throw a WsSecuritySecurementException or + WsSecurityValidationException respectively. + These exceptions bypass the standard + exception handling mechanism, but are handled in the interceptor itself. + + + WsSecuritySecurementException exceptions are handled in the + handleSecurementException method of the + XwsSecurityInterceptor. + By default, this method will simply log an error, and stop further processing of the message. + + + Similarly, WsSecurityValidationException exceptions are handled in the + handleValidationException method of the + XwsSecurityInterceptor. + By default, this method will create a SOAP 1.1 Client or SOAP 1.2 Sender Fault, and send that back as + a response. + + + + Both handleSecurementException and + handleValidationException are protected methods, which you can override + to change their default behavior. + + +
@@ -1939,5 +1965,13 @@ </para> </section> </section> + <section> + <title>Security Exception Handling + + The exception handling of the Wss4jSecurityInterceptor is identical to that of + the XwsSecurityInterceptor. See + for more information. + +