public interface User
Modifier and Type | Method and Description |
---|---|
AuthorizationRequest |
authorize(AuthorizationRequest request)
Authorize a
AuthorizationRequest for this user |
List<Authority> |
getAuthorities()
Get all authorities granted to this user
|
List<Authority> |
getAuthorities(Class<? extends Authority> clazz)
Get authorities of the specified type granted to this user
|
boolean |
getEnabled()
Get the user enable status.
|
String |
getHomeDirectory()
Get the user home directory
|
int |
getMaxIdleTime()
Get the maximum idle time in seconds.
|
String |
getName()
Get the user name.
|
String |
getPassword()
Get password.
|
String getName()
String getPassword()
List<Authority> getAuthorities()
List<Authority> getAuthorities(Class<? extends Authority> clazz)
clazz
- The type of Authority
AuthorizationRequest authorize(AuthorizationRequest request)
AuthorizationRequest
for this userrequest
- The AuthorizationRequest
to authorizeint getMaxIdleTime()
boolean getEnabled()
String getHomeDirectory()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.