org.sandev.basics.structs
Class BaseUserStruct

java.lang.Object
  extended byorg.sandev.basics.structs.BaseUserStruct
Direct Known Subclasses:
BaseUser

public class BaseUserStruct
extends java.lang.Object

The single root user definition from which all user definitions extend. This is a convenient abstract base class for applications to define their own user definitions.

This message serves as an abstract base class for other messages.
This message is persistent.
This message implements the AuthUser interface.
This message has the following verb forms: update query collection history

Field Summary
protected  java.lang.String password
          A password matched with the username at login.
protected  java.lang.String username
          A name uniquely identifying this user for login purposes.
 
Constructor Summary
BaseUserStruct()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

username

protected java.lang.String username
A name uniquely identifying this user for login purposes. Most usernames are fairly short and relatively easy to remember. This field is large enough to hold ugly constructions like "mylongfirstname.mylonglastname%mylongdomain.org@mylongdomain.org" if necessary, but the normal length is expected to be around 10 characters or so.

declared default value: ""
the values for this field are unique.
declared invalid value: ""
Length in characters, normal: 15 max: 80

password

protected java.lang.String password
A password matched with the username at login. Application security requirements range from simple unencrypted passphrase authentication all the way to certificate, biometric and/or other access control mechanisms. The password is used as a security component in all cases.

When coming up with a password, try to include numbers or other characters besides just letters. Avoid names or words that are easy to guess, and never use your bank PIN or other secure information for anything other than the bank or site it was given for.

If coming up with a password is difficult, consider searching the web for "random password generator" and using the output from one of them. Alternatively, think of a phrase and use the first letter of each word in the phrase. For example the phrase "I can't think of a good password to use" could translate to Ictoagp2u. Come up with your own phrase, and sprinkle in some numbers, underscores or hyphens.

declared default value: ""
input to this field input is hidden in the UI.
declared invalid value: "SANDEV_INVALID_PASSWORD"
Length in characters, normal: 15 max: 80
Constructor Detail

BaseUserStruct

public BaseUserStruct()