|
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.util.SaxHandlerBase org.xmlBlaster.authentication.plugins.demo.SecurityQos
public class SecurityQos
Helper class for Java clients.
This class only generates a login() or init() qos xml string typically of the form:<securityService type='gui' version='1.0'> <![CDATA[ <user>KingKong</user> <passwd>secret</passwd> ]]> </securityService>
Field Summary | |
---|---|
private java.lang.String |
passwd
|
private java.lang.String |
type
|
private java.lang.String |
user
|
private java.lang.String |
version
|
Fields inherited from class org.xmlBlaster.util.SaxHandlerBase |
---|
character, glob, locator, xmlLiteral, xmlSource |
Constructor Summary | |
---|---|
SecurityQos(Global glob)
|
|
SecurityQos(Global glob,
java.lang.String loginName,
java.lang.String password)
|
Method Summary | |
---|---|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
End element, event from SAX parser. |
java.lang.String |
getClientIp()
Access the remote IP of the socket - the clients IP. |
java.lang.String |
getCredential()
Access the credential (e.g. |
java.lang.String |
getPluginType()
|
java.lang.String |
getPluginVersion()
|
java.lang.String |
getUserId()
Get the userId, which is used for the login; |
void |
parse(java.lang.String xmlQos_literal)
Parse the given xml string which contains the userId and credentials. |
void |
setClientIp(java.lang.String ip)
|
void |
setCredential(java.lang.String cred)
Set the credential (password etc.). |
void |
setUserId(java.lang.String userId)
Set the userId for the login. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes attrs)
Start element, event from SAX parser. |
java.lang.String |
toXml(java.lang.String extraOffset)
Serialize the information. |
Methods inherited from class org.xmlBlaster.util.SaxHandlerBase |
---|
characters, comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, error, fatalError, getUseLexicalHandler, ignorableWhitespace, init, init, init, notationDecl, processingInstruction, setDocumentLocator, setUseLexicalHandler, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping, toString, toXml, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String type
private java.lang.String version
private java.lang.String user
private java.lang.String passwd
Constructor Detail |
---|
public SecurityQos(Global glob)
public SecurityQos(Global glob, java.lang.String loginName, java.lang.String password)
Method Detail |
---|
public void parse(java.lang.String xmlQos_literal) throws XmlBlasterException
I_SecurityQos
parse
in interface I_SecurityQos
XmlBlasterException
public void setUserId(java.lang.String userId)
I_SecurityQos
setUserId
in interface I_SecurityQos
public java.lang.String getUserId()
I_SecurityQos
getUserId
in interface I_SecurityQos
public java.lang.String getPluginType()
public java.lang.String getPluginVersion()
public void setCredential(java.lang.String cred)
I_SecurityQos
setCredential
in interface I_SecurityQos
public java.lang.String getCredential()
I_SecurityQos
getCredential
in interface I_SecurityQos
public void setClientIp(java.lang.String ip)
setClientIp
in interface I_SecurityQos
public java.lang.String getClientIp()
I_SecurityQos
getClientIp
in interface I_SecurityQos
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes attrs)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class SaxHandlerBase
name
- Tag nameattrs
- the attributes of the tagpublic void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class SaxHandlerBase
name
- Tag namepublic java.lang.String toXml(java.lang.String extraOffset)
I_SecurityQos
toXml
in interface I_SecurityQos
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |