|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface User
This interface defines the basic functionality for a user; setter methods are optional in the sense that they may generally throw an UnsupportedOperationException
UserLoginStore| Field Summary |
|---|
| Fields inherited from interface com.antelmann.db.DBEntry |
|---|
ENTRY_FLAVOR, ENTRY_LIST_FLAVOR |
| Fields inherited from interface com.antelmann.util.Enabled |
|---|
FILTER |
| Method Summary | |
|---|---|
boolean |
checkPassword(char[] password)
returns true only if the provided password matches the one of this user |
String |
getEmail()
|
String |
getPasswordHash()
returns the password representation suitable for serialization or other permanent storage |
String |
getUserDescription()
|
boolean |
hasAccess(Object action)
determines whether this user is allowed to access the given resource |
void |
resetPassword()
resets the password to a commonly known value for this instance |
void |
setAccess(Object action,
boolean flag)
grants/denies access to the given action |
void |
setEmail(String email)
|
void |
setName(String name)
|
void |
setPassword(char[] newPassword)
sets the password for this user (the password itself is not stored, but a hashed version of it) |
void |
setPasswordHash(String hashedString)
directly sets the hashed version of the password (so that the password can be changed to that of another user without knowing it) |
void |
setUserDescription(String desc)
|
| Methods inherited from interface com.antelmann.db.DBEntry |
|---|
getID |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.antelmann.util.Enabled |
|---|
isEnabled, setEnabled |
| Methods inherited from interface java.security.Principal |
|---|
equals, getName, hashCode, toString |
| Method Detail |
|---|
boolean checkPassword(char[] password)
String getPasswordHash()
void setPassword(char[] newPassword)
throws UnsupportedOperationException
UnsupportedOperationException
void setPasswordHash(String hashedString)
throws UnsupportedOperationException
UnsupportedOperationException
void resetPassword()
throws UnsupportedOperationException
UnsupportedOperationException
void setName(String name)
throws UnsupportedOperationException
UnsupportedOperationExceptionString getUserDescription()
void setUserDescription(String desc)
throws UnsupportedOperationException
UnsupportedOperationExceptionString getEmail()
void setEmail(String email)
throws UnsupportedOperationException
UnsupportedOperationExceptionboolean hasAccess(Object action)
void setAccess(Object action,
boolean flag)
throws UnsupportedOperationException
UnsupportedOperationException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||