public class DelegatedMessageAuthentication extends java.lang.Object implements MessageAuthentication
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="authDelegated">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="scheme" type="xs:string" default="delegated"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
MessageAuthentication.MessageAuthScheme| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME |
| Constructor and Description |
|---|
DelegatedMessageAuthentication()
Initializes an empty Delegated Message Authentication.
|
DelegatedMessageAuthentication(java.lang.String name,
java.lang.String password)
Initializes a Delegated Message Authentication with a name and 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 object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String[] |
getCredentials()
Returns the credentials as a string array containing the name and the password.
|
MessageAuthentication.MessageAuthScheme |
getScheme()
Returns the name of the scheme used for authentication.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
public static final java.lang.String TAG_NAME
public DelegatedMessageAuthentication()
public DelegatedMessageAuthentication(java.lang.String name,
java.lang.String password)
name - The name to which the authentication is delegated topassword - The passwordpublic java.lang.String[] getCredentials()
public MessageAuthentication.MessageAuthScheme getScheme()
MessageAuthenticationgetScheme in interface MessageAuthenticationpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into