|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.security.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 String |
authenticationType
|
| Constructor Summary | |
BasicUser(String authenticationType)
|
|
| Method Summary | |
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 String authenticationType
| Constructor Detail |
public BasicUser(String authenticationType)
| 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()
public 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)
public int hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||