public interface UserProvider
CloudContextAuthentication.getUserProvider(). Implementation defines what is a user, and how some of the
esential properties of them are acquired.| Modifier and Type | Method and Description |
|---|---|
String |
encode(String password) |
MMObjectNode |
getAnonymousUser()
Returns the node representing the anonymous node.
|
String |
getDefaultContext(MMObjectNode user) |
Rank |
getRank(MMObjectNode userNode) |
MMObjectNode |
getUser(String user)
Returns the node associated with a certain username
or
null |
MMObjectNode |
getUser(String user,
String pw,
boolean encoded)
Returns the node associated with a certain username/password combination,
or
null |
MMObjectBuilder |
getUserBuilder() |
MMObjectNode |
getUserByRank(String userName,
String rank)
Returns the node associated with a certain username/rank combination
or
null |
boolean |
isOwnNode(User user,
MMObjectNode node)
Returns whether the given node is an 'own' node.
|
boolean |
isValid(MMObjectNode userNode) |
MMObjectNode getAnonymousUser()
null?MMObjectNode getUser(String user, String pw, boolean encoded)
nullencoded - Whether or not the user is requested usering the username/encodedpassword login
'type' see Authenticate.login(java.lang.String, java.util.Map<java.lang.String, ?>, java.lang.Object[]).MMObjectNode getUser(String user)
nullMMObjectNode getUserByRank(String userName, String rank)
nullString getDefaultContext(MMObjectNode user)
Rank getRank(MMObjectNode userNode)
boolean isValid(MMObjectNode userNode)
MMObjectBuilder getUserBuilder()
boolean isOwnNode(User user, MMObjectNode node)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}