public class SimpleMessageAuthentication extends java.lang.Object implements MessageAuthentication
| Constructor and Description |
|---|
SimpleMessageAuthentication()
Initializes an empty SimpleMessageAuthentication.
The method setPassword(String)
must be invoked to be valid. |
SimpleMessageAuthentication(java.lang.String password)
Initializes a Simple Message Authentication with a password.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the objects, the
child represents
the marshallable object to be added into the content tree. |
java.lang.String |
getEncryptedPassword()
Returns an encrypted password as authentication data.
|
java.lang.String |
getPassword()
Returns a password as authentication data.
|
java.lang.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(java.lang.String pw)
Sets the password for this message authentication.
|
public SimpleMessageAuthentication()
setPassword(String)
must be invoked to be valid.public SimpleMessageAuthentication(java.lang.String password)
password - The password to be authenticatedpublic java.lang.String getScheme()
getScheme in interface MessageAuthenticationpublic java.lang.String getPassword()
public java.lang.String getEncryptedPassword()
public void setPassword(java.lang.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(java.lang.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(java.lang.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