|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.authentication.plugins.demo.ClientPlugin
public class ClientPlugin
Class for java clients, decrypting messages which came from the corresponding security plugin.
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.
Field Summary | |
---|---|
private Global |
glob
|
static java.lang.String |
ME
|
Constructor Summary | |
---|---|
ClientPlugin()
|
Method Summary | |
---|---|
I_SecurityQos |
createSecurityQos()
The client application can use this method to get a new I_SecurityQos instance, and use it to set userId/password etc. |
private byte[] |
crypt(byte[] byteArr)
Well, rot13 is no encryption, but it illustrates what importMessage and ExportMessage could do. |
private byte[] |
exportMessage(byte[] byteArr)
|
MsgUnitRaw |
exportMessage(CryptDataHolder dataHolder)
encrypt, sign, seal an outgoing message. |
java.lang.String |
getType()
|
java.lang.String |
getVersion()
|
private byte[] |
importMessage(byte[] byteArr)
|
MsgUnitRaw |
importMessage(CryptDataHolder dataHolder)
decrypt, check, unseal an incomming message. |
private java.lang.String |
importMessage(java.lang.String xmlMsg)
decrypt, check, unseal etc an incomming message. |
void |
init(Global glob,
PluginInfo pluginInfo)
|
void |
setSessionData(java.lang.String sessionData)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ME
private Global glob
Constructor Detail |
---|
public ClientPlugin()
Method Detail |
---|
public void init(Global glob, PluginInfo pluginInfo)
init
in interface I_ClientPlugin
public java.lang.String getType()
getType
in interface I_ClientPlugin
public java.lang.String getVersion()
getVersion
in interface I_ClientPlugin
public I_SecurityQos createSecurityQos()
createSecurityQos
in interface I_ClientPlugin
public void setSessionData(java.lang.String sessionData)
setSessionData
in interface I_ClientPlugin
public MsgUnitRaw importMessage(CryptDataHolder dataHolder) throws XmlBlasterException
importMessage
in interface I_MsgSecurityInterceptor
MsgUnitRaw
- The the received messageMethodName
- The name of the method which is intercepted
XmlBlasterException
- Thrown i.e. if the message has been modifiedI_MsgSecurityInterceptor.exportMessage(CryptDataHolder)
private java.lang.String importMessage(java.lang.String xmlMsg) throws XmlBlasterException
String
- The the received message
XmlBlasterException
- Thrown i.e. if the message has been modifiedprivate byte[] importMessage(byte[] byteArr) throws XmlBlasterException
XmlBlasterException
public MsgUnitRaw exportMessage(CryptDataHolder dataHolder) throws XmlBlasterException
exportMessage
in interface I_MsgSecurityInterceptor
MsgUnitRaw
- The source message
XmlBlasterException
- Thrown if the message cannot be processedI_MsgSecurityInterceptor.importMessage(CryptDataHolder)
private byte[] exportMessage(byte[] byteArr) throws XmlBlasterException
XmlBlasterException
private byte[] crypt(byte[] byteArr)
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |