Initializer |
User(User unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
clearCache | shared default User clearCache() The User object will cache any authorities that it knows it has to avoid hitting the underlying auth provider each time. Use this method if you want to clear this cache. |
isAuthorised | shared default User isAuthorised(String authority, Anything(Throwable|Boolean) resultHandler) Is the user authorised to Parameters:
|
principal | shared default Object principal() Get the underlying principal for the User. What this actually returns depends on the implementation. For a simple user/password based auth, it's likely to contain a JSON object with the following structure: { "username", "tim" } |
setAuthProvider | shared default void setAuthProvider(AuthProvider authProvider) Set the auth provider for the User. This is typically used to reattach a detached User with an AuthProvider, e.g. after it has been deserialized. Parameters:
|
Inherited Methods |
Methods inherited from: Object equals |