|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.security.BasicUser
public class BasicUser
A UserContext object is the result of an authentication, on which authorization can be based. Normally your authorization/authentication implementation will also provide an extension to this class. This default implementation is the most simple one, actually implementing 'no authorization' (because the rank is fixed to 'administrator'). This class is not necessarily also the container class for the client's credentials, although this is possible.
| Field Summary | |
|---|---|
protected Authentication |
authentication
|
protected String |
authenticationType
|
| Constructor Summary | |
|---|---|
BasicUser(Authentication auth,
String authenticationType,
String identifier)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
String |
getAuthenticationType()
Returns the original authentication type as specified in getCloud |
String |
getIdentifier()
Gets the unique identifier for this user. |
String |
getOwnerField()
Gets the owner field value of new objects created by this user. |
Rank |
getRank()
Gets the rank of this user. |
int |
hashCode()
|
boolean |
isValid()
Is valid |
String |
toString()
Gets a string representation of this user context (for debugging) |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final String authenticationType
protected Authentication authentication
| Constructor Detail |
|---|
public BasicUser(Authentication auth,
String authenticationType,
String identifier)
| Method Detail |
|---|
public String getIdentifier()
getIdentifier in interface UserContextpublic String getOwnerField()
getOwnerField in interface UserContext
public Rank getRank()
throws SecurityException
getRank in interface UserContextSecurityExceptionpublic String toString()
toString in class Objectpublic boolean isValid()
UserContext
isValid in interface UserContexttrue if the user is still valid.
false if the user is expired..public String getAuthenticationType()
UserContext
getAuthenticationType in interface UserContextCloudContext.getCloud(java.lang.String)public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(Object o)
compareTo in interface Comparable<Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||