|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface I_SecurityQos
A client helper. The reason is for clients to access xmlBlaster transparently from the authentication method
Here is a typical example for a password based QoS
<qos>
<securityService type='htpasswd' version='1.0'>
<![CDATA[
<user>michele</user>
<passwd>secret</passwd>
]]>
</securityService>
</qos>
| Method Summary | |
|---|---|
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 |
getUserId()
Get the userId, which is used for the login; |
void |
parse(java.lang.String xml)
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. |
java.lang.String |
toXml(java.lang.String extraOffset)
Serialize the information. |
| Method Detail |
|---|
void parse(java.lang.String xml)
throws XmlBlasterException
XmlBlasterExceptionvoid setUserId(java.lang.String userId)
String - userIdjava.lang.String getUserId()
void setClientIp(java.lang.String ip)
java.lang.String getClientIp()
void setCredential(java.lang.String cred)
String - credentialjava.lang.String getCredential()
java.lang.String toXml(java.lang.String extraOffset)
|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||