|
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.simple.SecurityQos
public final class SecurityQos
Parse the default security handling with loginName and password from the login qos xml string:
<securityService type="simple" version="1.0"> <user>aUser</user> <passwd>theUsersPwd</passwd> </securityService>
Field Summary | |
---|---|
private boolean |
inPasswd
|
private boolean |
inSecurityService
|
private boolean |
inUser
|
private static java.lang.String |
ME
|
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 xmlQoS_literal)
|
|
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; |
static void |
main(java.lang.String[] args)
For testing: java org.xmlBlaster.authentication.plugins.simple.SecurityQos |
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 |
toXml(java.lang.String extraOffset)
Dump state of this object into a XML ASCII string. |
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, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static java.lang.String ME
private transient boolean inSecurityService
private transient boolean inUser
private transient boolean inPasswd
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 xmlQoS_literal) throws XmlBlasterException
XmlBlasterException
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 java.lang.String getPluginVersion()
public java.lang.String getPluginType()
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 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 setCredential(java.lang.String cred)
I_SecurityQos
setCredential
in interface I_SecurityQos
cred
- The passwordpublic java.lang.String getCredential()
I_SecurityQos
getCredential
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 final java.lang.String toXml()
toXml
in class SaxHandlerBase
public final java.lang.String toXml(java.lang.String extraOffset)
toXml
in interface I_SecurityQos
extraOffset
- indenting of tags for nice output
public static void main(java.lang.String[] args)
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |