|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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_ClientPluginpublic java.lang.String getType()
getType in interface I_ClientPluginpublic java.lang.String getVersion()
getVersion in interface I_ClientPluginpublic I_SecurityQos createSecurityQos()
createSecurityQos in interface I_ClientPluginpublic void setSessionData(java.lang.String sessionData)
setSessionData in interface I_ClientPlugin
public MsgUnitRaw importMessage(CryptDataHolder dataHolder)
throws XmlBlasterException
importMessage in interface I_MsgSecurityInterceptorMsgUnitRaw - 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 modified
private byte[] importMessage(byte[] byteArr)
throws XmlBlasterException
XmlBlasterException
public MsgUnitRaw exportMessage(CryptDataHolder dataHolder)
throws XmlBlasterException
exportMessage in interface I_MsgSecurityInterceptorMsgUnitRaw - The source message
XmlBlasterException - Thrown if the message cannot be processedI_MsgSecurityInterceptor.importMessage(CryptDataHolder)
private byte[] exportMessage(byte[] byteArr)
throws XmlBlasterException
XmlBlasterExceptionprivate byte[] crypt(byte[] byteArr)
|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||