Modifier and Type | Method and Description |
---|---|
<T extends User> |
UserManager.addUser(T user,
String password)
Creates new user account with specified attributes.
|
<T extends User> |
UserManager.getUser(String username)
Retrieve a user from persistent storage using username as the key.
|
<T extends User> |
UserManager.getUser(String username,
String password)
Retrieve a user from persistent storage using username as the key, and
authenticate the user.
|
<T extends User> |
UserManager.getUserById(Object id)
Retrieve a user from persistent storage using the id as the key.
|
<T extends User> |
UserManager.getUserInstance()
Construct a blank User object.
|
<T extends User> |
UserManager.getUserInstance(String userName)
Construct a blank User object.
|
Modifier and Type | Method and Description |
---|---|
void |
UserManager.authenticate(User user,
String password)
Authenticate an User with the specified password.
|
void |
UserManager.changePassword(User user,
String oldPassword,
String newPassword)
Change the password for an User.
|
boolean |
UserManager.checkExists(User user)
Determines if the
User exists in the security system. |
void |
UserManager.forcePassword(User user,
String password)
Forcibly sets new password for an User.
|
<T extends AccessControlList> |
UserManager.getACL(User user)
Return a Class object representing the system's chosen implementation of
of ACL interface.
|
void |
UserManager.removeUser(User user)
Removes an user account from the system.
|
void |
UserManager.saveUser(User user)
Saves User's data in the permanent storage.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TextMatchAuthenticator.authenticate(User user,
String password)
Authenticate an username with the specified password.
|
boolean |
NoOpAuthenticator.authenticate(User user,
String password)
Authenticate an username with the specified password.
|
boolean |
CryptoAuthenticator.authenticate(User user,
String password)
Authenticate a user with the specified password.
|
boolean |
Authenticator.authenticate(User user,
String password) |
Modifier and Type | Interface and Description |
---|---|
interface |
ExtendedUser
This interface represents the extended functionality of a user.
|
Modifier and Type | Method and Description |
---|---|
<T extends AccessControlList> |
ACLFactory.getAccessControlList(User user) |
Modifier and Type | Method and Description |
---|---|
<T extends AccessControlList> |
BasicACLFactory.getAccessControlList(User user) |
void |
BasicModelManager.grant(User user,
Group group)
Puts a user in a group.
|
void |
BasicModelManager.revoke(User user,
Group group)
Removes a user from a group
|
void |
BasicModelManager.revokeAll(User user)
Revokes all groups from an User.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BasicUser
Represents the "basic" model where users can be part of multiple groups
directly, with no roles or permissions.
|
Modifier and Type | Method and Description |
---|---|
<T extends User> |
BasicGroup.getUsersAsSet()
Get the users that are part of this group as a Set
|
<T extends User> |
BasicGroup.setUsersAsSet(Set<T> users)
Set the users that are part of this group as a Set
|
Modifier and Type | Method and Description |
---|---|
void |
BasicGroup.addUser(User user)
Add a user to this group
|
void |
BasicGroup.removeUser(User user)
Remove a user from this group
|
Modifier and Type | Class and Description |
---|---|
class |
BasicUserImpl
Represents the "basic" model where users can be part of multiple groups
directly, with no roles or permissions.
|
Modifier and Type | Method and Description |
---|---|
<T extends User> |
BasicGroupImpl.getUsersAsSet()
Get the users that are part of this group as a Set
|
<T extends User> |
BasicGroupImpl.setUsersAsSet(Set<T> users)
Set the users that are part of this group as a Set
|
Modifier and Type | Method and Description |
---|---|
void |
BasicGroupImpl.addUser(User user)
Add a user to this group
|
void |
BasicGroupImpl.removeUser(User user)
Remove a user from this group
|
Modifier and Type | Method and Description |
---|---|
void |
DynamicModelManager.addDelegate(User delegator,
User delegatee)
Allow B to assumes A's roles, groups and permissions
|
void |
AbstractDynamicModelManager.addDelegate(User delegator,
User delegatee)
It is expected the real implementation will overide this and save either
side of the function.
|
<T extends AccessControlList> |
DynamicACLFactory.getAccessControlList(User user) |
void |
DynamicModelManager.grant(User user,
Group group)
Puts a user in a group.
|
void |
DynamicModelManager.removeDelegate(User delegator,
User delegatee)
Stop A having B's roles, groups and permissions
|
void |
AbstractDynamicModelManager.removeDelegate(User delegator,
User delegatee)
Implementors should overide this to save and call super if they want the
base class to do the work
|
void |
DynamicModelManager.revoke(User user,
Group group)
Removes a user from a group
|
void |
DynamicModelManager.revokeAll(User user)
Revokes all roles from an User.
|
void |
AbstractDynamicModelManager.revokeAll(User user)
Revokes all groups from a user
This method is used when deleting an account.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DynamicUser
Represents the "simple" model where permissions are related to roles, roles
are related to groups and groups are related to users, all in many to many
relationships.
|
Modifier and Type | Method and Description |
---|---|
<T extends User> |
DynamicUser.getDelegatees()
Get the set of delegatees for this user
|
<T extends User> |
DynamicUser.getDelegators()
Get the set of delegators for this user
|
<T extends User> |
DynamicUser.setDelegatees(Set<T> delegatees)
Set the delegatees for this user
|
<T extends User> |
DynamicUser.setDelegators(Set<T> delegators)
Set the delegators for this user
|
Modifier and Type | Class and Description |
---|---|
class |
DynamicUserImpl
Represents the "simple" model where permissions are related to roles, roles
are related to groups and groups are related to users, all in many to many
relationships.
|
Modifier and Type | Method and Description |
---|---|
<T extends User> |
DynamicUserImpl.getDelegatees()
Get the set of delegatees for this user
|
<T extends User> |
DynamicUserImpl.getDelegators()
Get the set of delegators for this user
|
<T extends User> |
DynamicUserImpl.setDelegatees(Set<T> delegatees)
Set the delegatees for this user
|
<T extends User> |
DynamicUserImpl.setDelegators(Set<T> delegators)
Set the delegators for this user
|
Modifier and Type | Method and Description |
---|---|
<T extends User> |
TurbineUserManager.getAnonymousUser()
Constructs an User object to represent an anonymous user of the
application.
|
Modifier and Type | Method and Description |
---|---|
<T extends AccessControlList> |
TurbineACLFactory.getAccessControlList(User user) |
void |
TurbineModelManager.grant(User user,
Group group,
Role role)
Grant an User a Role in a Group.
|
boolean |
TurbineUserManager.isAnonymousUser(User u)
Checks whether a passed user object matches the anonymous user pattern
according to the configured user manager
|
void |
TurbineModelManager.revoke(User user,
Group group,
Role role)
Revoke a Role in a Group from an User.
|
void |
TurbineModelManager.revokeAll(User user)
Revokes all roles from an User.
|
void |
AbstractTurbineModelManager.revokeAll(User user)
Revokes all roles and groups from a User.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TurbineUser
Represents the "turbine" model where permissions are in a many to many
relationship to roles, roles are related to groups are related to users, all
in many to many relationships.
|
Modifier and Type | Method and Description |
---|---|
User |
TurbineUserGroupRole.getUser()
Get the user
|
Modifier and Type | Method and Description |
---|---|
void |
TurbineUserGroupRole.setUser(User user)
Set the user
|
Modifier and Type | Class and Description |
---|---|
class |
TurbineUserImpl
Represents the "turbine" model where permissions are in a many to many
relationship to roles, roles are related to groups are related to users, all
in many to many relationships.
|
Modifier and Type | Method and Description |
---|---|
<T extends User> |
AbstractUserManager.addUser(T user,
String password)
Creates new user account with specified attributes.
|
<T extends User> |
AbstractUserManager.getUser(String name) |
<T extends User> |
AbstractUserManager.getUser(String userName,
String password)
Retrieve a user from persistent storage using username as the key, and
authenticate the user.
|
<T extends User> |
AbstractUserManager.getUserById(Object id)
Retrieve a User object with specified Id.
|
<T extends User> |
AbstractUserManager.getUserInstance()
Construct a blank User object.
|
<T extends User> |
AbstractUserManager.getUserInstance(String userName)
Construct a blank User object.
|
protected abstract <T extends User> |
AbstractUserManager.persistNewUser(T user) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractUserManager.authenticate(User user,
String password)
Authenticate an User with the specified password.
|
void |
AbstractUserManager.changePassword(User user,
String oldPassword,
String newPassword)
Change the password for an User.
|
boolean |
AbstractUserManager.checkExists(User user)
Check whether a specified user's account exists.
|
void |
AbstractUserManager.forcePassword(User user,
String password)
Forcibly sets new password for an User.
|
<T extends AccessControlList> |
AbstractUserManager.getACL(User user) |
Modifier and Type | Method and Description |
---|---|
User |
UserSet.getUserById(Object userId)
Deprecated.
use getById()
|
User |
UserSet.getUserByName(String userName)
Deprecated.
use getByName()
|
Constructor and Description |
---|
UserSet(Collection<? extends User> users)
Constructs a new UserSet with specified contents.
|
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.