public class SimpleMessageAuthentication extends Object implements MessageAuthentication
| Constructor and Description |
|---|
SimpleMessageAuthentication()
Initializes an empty SimpleMessageAuthentication.
The method setPassword(String)
must be invoked to be valid. |
SimpleMessageAuthentication(String password)
Initializes a Simple Message Authentication with a password.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the objects, the
child represents
the marshallable object to be added into the content tree. |
String |
getEncryptedPassword()
Returns an encrypted password as authentication data.
|
String |
getPassword()
Returns a password as authentication data.
|
String |
getScheme()
Returns the authentication scheme defined in this class: "simple".
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, and of its
children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the tag being
processed.
|
void |
setPassword(String pw)
Sets the password for this message authentication.
|
public SimpleMessageAuthentication()
setPassword(String)
must be invoked to be valid.public SimpleMessageAuthentication(String password)
password - The password to be authenticatedpublic String getScheme()
getScheme in interface MessageAuthenticationpublic String getPassword()
public String getEncryptedPassword()
public void setPassword(String pw)
pw - The password for this message authenticationpublic void setAttributes(XMLAttributes atts)
setAttributes in interface XMLMarshallableatts - The XML attributes of the current tagpublic void addChild(String tagName, XMLMarshallable child)
child represents
the marshallable object to be added into the content tree.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(String cData)
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
marshal in interface XMLMarshallableoutput - The XML output to marshall the object into