|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rbnb.api.Username
public final class Username
Username class for the
| Constructor Summary | |
|---|---|
Username()
Class constructor. |
|
Username(String usernameI,
String passwordI)
Class constructor to build a Username object from
username and password strings. |
|
| Method Summary | |
|---|---|
boolean |
allowAccess(Username usernameI)
Allow the specified Username access to this
Username? |
Object |
clone()
Clones this Serializable object. |
String |
getPassword()
Gets the password string. |
String[] |
getRoles()
Gets the list of roles granted to this Username. |
String |
getUsername()
Gets the username string. |
boolean |
isEqual(Username otherI)
Is this Username equal to the input one? |
void |
setPassword(String passwordI)
Sets the password string. |
void |
setUsername(String usernameI)
Sets the username string. |
String |
toString()
Returns a string representation of this Username. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Username()
public Username(String usernameI,
String passwordI)
Username object from
username and password strings.
usernameI - the username string.passwordI - the password string.| Method Detail |
|---|
public final boolean allowAccess(Username usernameI)
Username access to this
Username?
usernameI - the Username.
Username allowed access?public final boolean isEqual(Username otherI)
Username equal to the input one?
otherI - the other Username.
public final String getPassword()
setPassword(String passwordI)public final String[] getRoles()
Username.
public final String getUsername()
setUsername(String usernameI)public final void setPassword(String passwordI)
passwordI - the password string.getPassword()public final void setUsername(String usernameI)
usernameI - the username string.getUsername()public final String toString()
Username.
toString in class Objectpublic Object clone()
Serializable object.
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||