Class UserSessionMessageAuthentication
java.lang.Object
com.highdeal.hci.UserSessionMessageAuthentication
- All Implemented Interfaces:
MessageAuthentication, XMLMarshallable
This class represents the authentication marker for the "user-session" scheme.
It indicates that user session authentication is being used.
The actual session ID is stored in the originator element (not in this authentication marker).
This is an explicit authentication type that indicates user session mode, where
authentication is based on a session ID instead of a password.
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="authUserSession">
<xs:complexType>
<xs:attribute name="scheme" type="xs:string" default="user-session"/>
</xs:complexType>
</xs:element>
-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageAuthentication
MessageAuthentication.MessageAuthScheme -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the objects, thechildrepresents the marshallable object to be added into the content tree.Returns the authentication scheme defined in this class: "user-session".voidmarshal(XMLOutputter output) Gives an XML representation of this object.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the tag being processed.
-
Field Details
-
TAG_NAME
- See Also:
-
-
Constructor Details
-
UserSessionMessageAuthentication
public UserSessionMessageAuthentication()
-
-
Method Details
-
getScheme
Returns the authentication scheme defined in this class: "user-session".- Specified by:
getSchemein interfaceMessageAuthentication- Returns:
- "user-session"
-
setAttributes
Sets the attributes of the XML representation of the tag being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- The XML attributes of the current tag
-
addChild
Adds a child to the objects, thechildrepresents the marshallable object to be added into the content tree.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Adds character data to the content element. User session marker ignores any character data.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be ignored
-
marshal
Gives an XML representation of this object. The user session marker is just an empty element indicating the user session scheme.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- The XML output to marshal the object into
-