Package com.highdeal.hci
Class DelegatedMessageAuthentication
java.lang.Object
com.highdeal.hci.DelegatedMessageAuthentication
- All Implemented Interfaces:
MessageAuthentication,XMLMarshallable
This class represents the authentication data used for the "delegated" schema, that is delegated to another user.
XML API for HCI
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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.highdeal.hci.MessageAuthentication
MessageAuthentication.MessageAuthScheme -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInitializes an empty Delegated Message Authentication.DelegatedMessageAuthentication(String name, String password) Initializes a Delegated Message Authentication with a name and password. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.String[]Returns the credentials as a string array containing the name and the password.Returns the name of the scheme used for authentication.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.
-
Field Details
-
TAG_NAME
- See Also:
-
-
Constructor Details
-
DelegatedMessageAuthentication
public DelegatedMessageAuthentication()Initializes an empty Delegated Message Authentication. -
DelegatedMessageAuthentication
Initializes a Delegated Message Authentication with a name and password.- Parameters:
name- The name to which the authentication is delegated topassword- The password
-
-
Method Details
-
getCredentials
Returns the credentials as a string array containing the name and the password.- Returns:
- the credentials as a string array or null if there is no credentials.
-
getScheme
Description copied from interface:MessageAuthenticationReturns the name of the scheme used for authentication.- Specified by:
getSchemein interfaceMessageAuthentication- Returns:
- The name of the schema used for authentication
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-