xmlBlaster 2.2.0 API

org.xmlBlaster.authentication.plugins
Interface I_MsgSecurityInterceptor

All Known Subinterfaces:
I_ClientPlugin, I_Session
All Known Implementing Classes:
ClientPlugin, ClientPlugin, ClientPlugin, ClientPlugin, Session, Session, Session, Session

public interface I_MsgSecurityInterceptor

Interface declaring methods to intercept messages in the security layer to allow crypt/encrypt etc. messages before sending.

If for example the server security plugin crypts messages with rot13, we need to decrypt it on the client side with the same algorithm. This is done here.

The reason is for clients to access xmlBlaster transparently from the authentication method

For every plugin type you need, you need on instance of this class.


Method Summary
 MsgUnitRaw exportMessage(CryptDataHolder dataHolder)
          Encrypt, sign, seal an outgoing message.
 MsgUnitRaw importMessage(CryptDataHolder dataHolder)
          Decrypt, check, unseal etc an incomming message.
 

Method Detail

importMessage

MsgUnitRaw importMessage(CryptDataHolder dataHolder)
                         throws XmlBlasterException
Decrypt, check, unseal etc an incomming message.

Use this to import (decrypt) the xmlKey or xmlQos

Parameters:
dataHolder - A container holding the MsgUnitRaw and some additional informations
Returns:
The original or modified message
Throws:
XmlBlasterException - Thrown i.e. if the message has been modified
See Also:
exportMessage(CryptDataHolder)

exportMessage

MsgUnitRaw exportMessage(CryptDataHolder dataHolder)
                         throws XmlBlasterException
Encrypt, sign, seal an outgoing message.

Use this to export (encrypt) the xmlKey or xmlQos

Parameters:
dataHolder - A container holding the MsgUnitRaw and some additional informations
Returns:
The probably more secure string
Throws:
XmlBlasterException - Thrown if the message cannot be processed
See Also:
importMessage(CryptDataHolder)

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.