Holger's
Java API

com.antelmann.mgmt
Interface User

All Superinterfaces:
Comparable<User>, Entity, Resource, Serializable
All Known Implementing Classes:
TimeUser, UserImpl

public interface User
extends Entity, Comparable<User>

This interface defines the basic functionality for a user

Author:
Holger Antelmann

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

checkPassword

boolean checkPassword(char[] password)
returns true only if the provided password matches the one of this user


getPasswordHash

String getPasswordHash()
returns the password representation suitable for serialization or other permanent storage


setPassword

void setPassword(char[] newPassword)

setPasswordHash

void setPasswordHash(String hashedString)

isEnabled

boolean isEnabled()
determines whether this user is currently active


getName

String getName()
provides a String used as the login name and also suitable for display; commonly, this would also be returned by toString(). If the name is used as a login name, it should also be unique, just as well as the id.


getDescription

String getDescription()

canAccess

boolean canAccess(Object action)
determines whether this user is allowed to access the given resource


setAccess

void setAccess(Object action,
               boolean flag)
grants/denies access to the given action



(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads