Package | Description |
---|---|
org.apache.jetspeed.security |
Jetspeed security service interfaces.
|
Modifier and Type | Class and Description |
---|---|
class |
InvalidNewPasswordException
Exception thrown when supplied new password is invalid.
|
class |
InvalidPasswordException
Exception thrown when supplied password is invalid.
|
class |
PasswordAlreadyUsedException
Exception thrown when supplied password has been used before.
|
Modifier and Type | Method and Description |
---|---|
void |
JetspeedPrincipalManager.addAssociation(JetspeedPrincipal from,
JetspeedPrincipal to,
String associationName) |
Group |
GroupManager.addGroup(String groupName)
Add a new group.
|
Group |
GroupManager.addGroup(String groupName,
boolean mapped)
Add a new group and optionally map/replicate it to an external storage manager (if configured).
|
void |
GroupManager.addGroupToGroup(Group from,
Group to,
String associationName)
Add a hierarchical association between two groups.
|
void |
PermissionManager.addPermission(JetspeedPermission permission) |
void |
JetspeedPrincipalManager.addPrincipal(JetspeedPrincipal principal,
Set<JetspeedPrincipalAssociationReference> associations) |
Role |
RoleManager.addRole(String roleName)
Add a new role
|
Role |
RoleManager.addRole(String roleName,
boolean mapped)
Add a new role and optionally map/replicate it to an external storage manager (if configured).
|
void |
RoleManager.addRoleToGroup(String roleName,
String groupName)
Add a role to a group.
|
void |
RoleManager.addRoleToRole(Role from,
Role to,
String associationName)
Add a hierarchical association between two roles.
|
void |
RoleManager.addRoleToUser(String username,
String roleName)
Add a role to a user.
|
User |
UserManager.addUser(String userName)
Add a new user
|
User |
UserManager.addUser(String userName,
boolean mapped)
Add a new user and optionally map/replicate it to an external storage manager (if configured).
|
void |
GroupManager.addUserToGroup(String username,
String groupName)
Add a user to a group.
|
AuthenticatedUser |
AuthenticationProvider.authenticate(String userName,
String password)
Authenticate a user.
|
String |
PasswordEncodingService.decode(String userName,
String encodedPassword) |
String |
PasswordEncodingService.encode(String userName,
String clearTextPassword) |
String |
CredentialPasswordEncoder.encode(String userName,
String clearTextPassword) |
SecurityAttribute |
SecurityAttributes.getAttribute(String name,
boolean create)
Returns an existing (predefined typed) attribute or create one if parameter create is true.
|
Group |
GroupManager.getGroup(String groupName)
Get a group
Group for a given group name. |
List<String> |
GroupManager.getGroupNames(String nameFilter)
Retrieves a detached and modifiable List of group names, finding groups matching the corresponding
group name filter.
|
List<Group> |
GroupManager.getGroups(String nameFilter)
Retrieves a detached and modifiable
Group list matching the corresponding
group name filter. |
List<Group> |
GroupManager.getGroupsForUser(String username)
Retrieves a detached and modifiable
Group list of all the groups associated to a specific
user. |
List<Group> |
GroupManager.getGroupsInRole(String roleName)
Retrieves a detached and modifiable
Group list of all the groups in a specific role. |
PasswordCredential |
UserManager.getPasswordCredential(User user)
Returns the current PasswordCredential for a User or a new one if the doesn't have one yet
|
Role |
RoleManager.getRole(String roleName)
Get a role
Role for a given role name. |
List<String> |
RoleManager.getRoleNames(String nameFilter)
Retrieves a detached and modifiable List of role names, finding roles matching the corresponding
role name filter.
|
List<Role> |
RoleManager.getRoles(String nameFilter)
Retrieves a detached and modifiable
Role list matching the corresponding
role name filter. |
List<Role> |
RoleManager.getRolesForUser(String username)
Retrieves a detached and modifiable
Role list of all the roles
associated to a specific user. |
List<Role> |
RoleManager.getRolesInGroup(String groupName)
Retrieves a detached and modifiable
Role list of all the roles
associated to a specific group. |
Subject |
UserManager.getSubject(AuthenticatedUser user)
Get a Subject for an (possibly externally) authenticated user with (optionally) provided credentials.
|
Subject |
UserManager.getSubject(User user)
Get a Subject for an user.
|
User |
UserManager.getUser(String userName)
Get a
User for a given user name. |
List<String> |
UserManager.getUserNames(String nameFilter)
Retrieves a a detached and modifiable List user names, finding users matching the corresponding
user name filter.
|
List<User> |
UserManager.getUsers(String nameFilter)
Retrieves a detached and modifiable
User list matching the corresponding
user name filter. |
UserResultList |
UserManager.getUsersExtended(JetspeedPrincipalQueryContext queryContext)
Retrieves a detached and modifiable
User list matching the corresponding
query context. |
List<User> |
UserManager.getUsersInGroup(String groupName)
Retrieves a a detached and modifiable
User list of all the users in a specific group. |
List<User> |
UserManager.getUsersInRole(String roleName)
Retrieves a a detached and modifiable
User list of all the users in a specific role. |
void |
PermissionManager.grantPermission(JetspeedPermission permission,
JetspeedPrincipal principal) |
void |
PermissionManager.grantPermissionOnlyTo(JetspeedPermission permission,
List<JetspeedPrincipal> principals) |
void |
PermissionManager.grantPermissionOnlyTo(JetspeedPermission permission,
String principalType,
List<JetspeedPrincipal> principals) |
boolean |
RoleManager.isGroupInRole(String groupName,
String roleName)
Whether or not a role is in a group.
|
boolean |
GroupManager.isUserInGroup(String username,
String groupName)
Whether or not a user is in a group.
|
boolean |
RoleManager.isUserInRole(String username,
String roleName)
Whether or not a user is in a role.
|
List<User> |
UserManager.lookupUsers(String attributeName,
String attributeValue)
Retrieves a a detached and modifiable
User list of all the users having a specific value for a specific attribute |
void |
JetspeedPrincipalManager.removeAssociation(JetspeedPrincipal from,
JetspeedPrincipal to,
String associationName) |
void |
SecurityAttributes.removeAttribute(String name) |
void |
GroupManager.removeGroup(String groupName)
Remove a group.
|
void |
GroupManager.removeGroupFromGroup(Group from,
Group to,
String associationName)
Remove a hierarchical association between two groups.
|
void |
PermissionManager.removePermission(JetspeedPermission permission) |
void |
JetspeedPrincipalManager.removePrincipal(JetspeedPrincipal principal) |
void |
JetspeedPrincipalManager.removePrincipal(String name) |
void |
RoleManager.removeRole(String roleName)
Remove a given role
|
void |
RoleManager.removeRoleFromGroup(String roleName,
String groupName)
Remove a role from a group.
|
void |
RoleManager.removeRoleFromRole(Role from,
Role to,
String associationName)
Remove a hierarchical association between two roles.
|
void |
RoleManager.removeRoleFromUser(String username,
String roleName)
Remove a user from a role.
|
void |
UserManager.removeUser(String userName)
Remove a user.
|
void |
GroupManager.removeUserFromGroup(String username,
String groupName)
Remove a user from a group.
|
void |
PermissionManager.revokeAllPermissions(JetspeedPrincipal principal) |
void |
PermissionManager.revokePermission(JetspeedPermission permission,
JetspeedPrincipal principal) |
void |
JetspeedPrincipal.setEnabled(boolean enabled) |
void |
SecurityAttribute.setStringValue(String value) |
void |
UserManager.storePasswordCredential(PasswordCredential credential) |
void |
JetspeedPrincipalManager.transferAssociationFrom(JetspeedPrincipal from,
JetspeedPrincipal to,
JetspeedPrincipal target,
String associationName) |
void |
JetspeedPrincipalManager.transferAssociationTo(JetspeedPrincipal from,
JetspeedPrincipal to,
JetspeedPrincipal target,
String associationName) |
void |
GroupManager.updateGroup(Group group)
Updates a group and all its attributes
|
void |
PermissionManager.updatePermission(JetspeedPermission permission) |
void |
JetspeedPrincipalManager.updatePrincipal(JetspeedPrincipal principal) |
void |
RoleManager.updateRole(Role role)
Updates a role and all its attributes
|
void |
UserManager.updateUser(User user)
Updates a user and all its attributes
|
void |
CredentialPasswordValidator.validate(String clearTextPassword) |
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.