ecologylab.services.authentication.messages
Class Login
java.lang.Object
ecologylab.generic.Debug
ecologylab.xml.ElementState
ecologylab.services.messages.ServiceMessage
ecologylab.services.messages.RequestMessage
ecologylab.services.authentication.messages.Login
- All Implemented Interfaces:
- AuthMessages, AuthServerRegistryObjects, OptimizationTypes, XMLTranslationExceptionTypes, java.lang.Comparable<ServiceMessage>
public class Login
- extends RequestMessage
- implements AuthMessages, AuthServerRegistryObjects
Used to log into a server that requires authentication; carries username and password information in strings, and
checks them against "authenticationList" in the objectRegistry.
- Author:
- Zachary O. Toups (toupsz@cs.tamu.edu)
| Fields inherited from interface ecologylab.xml.OptimizationTypes |
BAD_FIELD, COLLECTION_ELEMENT, COLLECTION_SCALAR, IGNORED_ATTRIBUTE, IGNORED_ELEMENT, LEAF_NODE_VALUE, MAP_ELEMENT, MAP_SCALAR, NAME_SPACE_ATTRIBUTE, NAME_SPACE_LEAF_NODE, NAME_SPACE_MASK, NAME_SPACE_NESTED_ELEMENT, NAMESPACE_IGNORED_ELEMENT, NAMESPACE_TRIAL_ELEMENT, OTHER_NESTED_ELEMENT, REGULAR_ATTRIBUTE, REGULAR_NESTED_ELEMENT, ROOT, UNSET_TYPE, XMLNS_ATTRIBUTE, XMLNS_IGNORED |
|
Constructor Summary |
Login()
Should not normally be used; only for XML translations. |
Login(AuthenticationListEntry entry)
Creates a new Login object using the given AuthenticationListEntry. |
Login(java.lang.String username,
java.lang.String password)
Creates a new Login object using the given username and password; the password is hashed, per
AuthenticationListEntry, before it is stored. |
| Methods inherited from class ecologylab.xml.ElementState |
addNestedElement, addNestedElement, appendTextNodeString, buildDOM, buildDOM, buildDOM, buildDOM, buildDOM, buildDOMFromXMLCharSequence, buildDOMFromXMLString, checkAnnotation, convertNameStyles, createChildHook, fieldToXMLOptimizations, floatingPrecision, getCollection, getElementStateById, getMap, getNestedNameSpace, getTextNodeString, leafElementFieldNames, lookupNestedNameSpace, optimizations, parent, postTranslationProcessingHook, preTranslationProcessingHook, recycle, setDeclarationStyle, setFieldUsingTypeRegistry, setFloatingPrecision, setParent, setUseDOMForTranslateTo, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXMLCharSequence, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOMCharSequence, translateFromXMLDOMCharSequence, translateFromXMLRootNode, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateToDOM, translateToXML, translateToXML, translateToXML, translateToXML, writePrettyXML, writePrettyXML, writePrettyXML |
| Methods inherited from class ecologylab.generic.Debug |
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
entry
protected AuthenticationListEntry entry
Login
public Login()
- Should not normally be used; only for XML translations.
Login
public Login(AuthenticationListEntry entry)
- Creates a new Login object using the given AuthenticationListEntry.
- Parameters:
entry - -
the entry to use for the Login object.
Login
public Login(java.lang.String username,
java.lang.String password)
- Creates a new Login object using the given username and password; the password is hashed, per
AuthenticationListEntry, before it is stored.
- Parameters:
username - -
the username to use for the Login object.password - -
the password to hash, and then use for the Login object.
performService
public ResponseMessage performService(Scope objectRegistry,
java.lang.String sessionId)
- Determines if the supplied username and password are contained in the list of usernames and passwords in the
object registry.
- Specified by:
performService in class RequestMessage
- Parameters:
objectRegistry - Context to perform it in/with.sessionId - TODO
- Returns:
- A ResponseMessage indicating whether or not the username/password were accepted.
getEntry
public AuthenticationListEntry getEntry()
- Returns:
- Returns the entry.
setEntry
public void setEntry(AuthenticationListEntry entry)
- Parameters:
entry - The entry to set.