org.xmlBlaster.authentication.plugins.htpasswd
Class ClientPlugin
java.lang.Object
org.xmlBlaster.authentication.plugins.htpasswd.ClientPlugin
- All Implemented Interfaces:
- I_ClientPlugin, I_MsgSecurityInterceptor
public class ClientPlugin
- extends java.lang.Object
- implements I_ClientPlugin
Helper only for Java clients.
This class does nothing else than:
1. Generate the xml string
which is passed as the connect() or login() qos string
with the help of SecurityQos.java
2. The messages are not crypted or modified, so
the importMessage() and exportMessage() methods do nothing.
- Author:
- Cyrille Giquello 16/11/01 09:06
- See Also:
SecurityQos
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ME
public static final java.lang.String ME
- See Also:
- Constant Field Values
glob
private Global glob
pluginInfo
private PluginInfo pluginInfo
ClientPlugin
public ClientPlugin()
init
public void init(Global glob_,
PluginInfo pluginInfo_)
- Specified by:
init
in interface I_ClientPlugin
getType
public java.lang.String getType()
- Specified by:
getType
in interface I_ClientPlugin
- Returns:
- The plugin type, e.g. "htpasswd"
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interface I_ClientPlugin
- Returns:
- The plugin version, e.g. "1.0"
createSecurityQos
public 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.
- Specified by:
createSecurityQos
in interface I_ClientPlugin
setSessionData
public void setSessionData(java.lang.String sessionData)
- Specified by:
setSessionData
in interface I_ClientPlugin
importMessage
public MsgUnitRaw importMessage(CryptDataHolder dataHolder)
throws XmlBlasterException
- decrypt, check, unseal an incomming message.
- Specified by:
importMessage
in interface I_MsgSecurityInterceptor
- Parameters:
MsgUnitRaw
- The the received messageMethodName
- The name of the method which is intercepted
- Returns:
- MsgUnitRaw The original message
- Throws:
XmlBlasterException
- Thrown i.e. if the message has been modified- See Also:
I_MsgSecurityInterceptor.exportMessage(CryptDataHolder)
exportMessage
public MsgUnitRaw exportMessage(CryptDataHolder dataHolder)
throws XmlBlasterException
- encrypt, sign, seal an outgoing message.
We do noting in this simple case.
- Specified by:
exportMessage
in interface I_MsgSecurityInterceptor
- Parameters:
MsgUnitRaw
- The source message
- Returns:
- MsgUnitRaw
- Throws:
XmlBlasterException
- Thrown if the message cannot be processed- See Also:
I_MsgSecurityInterceptor.importMessage(CryptDataHolder)
Copyright © 1999-2014 The xmlBlaster.org contributers.