|
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
| Method Summary | |
|---|---|
boolean |
canAccess(Object action)
determines whether this user is allowed to access the given resource |
boolean |
checkPassword(char[] password)
returns true only if the provided password matches the one of this user |
String |
getDescription()
|
String |
getName()
provides a String used as the login name and also suitable for display; commonly, this would also be returned by toString(). |
String |
getPasswordHash()
returns the password representation suitable for serialization or other permanent storage |
boolean |
isEnabled()
determines whether this user is currently active |
void |
setAccess(Object action,
boolean flag)
grants/denies access to the given action |
void |
setPassword(char[] newPassword)
|
void |
setPasswordHash(String hashedString)
|
| Methods inherited from interface com.antelmann.mgmt.Entity |
|---|
getProperties, getProperty, removeProperty, setProperty |
| Methods inherited from interface com.antelmann.mgmt.Resource |
|---|
getID |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
boolean checkPassword(char[] password)
String getPasswordHash()
void setPassword(char[] newPassword)
void setPasswordHash(String hashedString)
boolean isEnabled()
String getName()
toString().
If the name is used as a login name, it should also be unique, just as well as the id.
String getDescription()
boolean canAccess(Object action)
void setAccess(Object action,
boolean flag)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||