public class LdapPrincipalAdapter extends Object implements PrincipalAdapter
Constructor and Description |
---|
LdapPrincipalAdapter() |
Modifier and Type | Method and Description |
---|---|
String |
getMail(String user)
Method to retrieve the mail from a user.
|
String |
getName(String user)
Method to retrieve the name from a user.
|
String |
getPassword(String user)
Method to retrieve the user password
|
List<String> |
getRoles()
Method to retrieve all roles from a authentication source.
|
List<String> |
getRolesByUser(String user)
Method to retrieve all roles from a user.
|
List<String> |
getUsers()
Method to retrieve all users from a authentication source.
|
List<String> |
getUsersByRole(String role)
Method to retrieve all users from a role.
|
public List<String> getUsers() throws PrincipalAdapterException
PrincipalAdapter
getUsers
in interface PrincipalAdapter
PrincipalAdapterException
- If any error occurs.public List<String> getRoles() throws PrincipalAdapterException
PrincipalAdapter
getRoles
in interface PrincipalAdapter
PrincipalAdapterException
- If any error occurs.public String getMail(String user) throws PrincipalAdapterException
PrincipalAdapter
getMail
in interface PrincipalAdapter
PrincipalAdapterException
- If any error occurs.public String getName(String user) throws PrincipalAdapterException
PrincipalAdapter
getName
in interface PrincipalAdapter
user
- A user id.PrincipalAdapterException
- If any error occurs.public String getPassword(String user) throws PrincipalAdapterException
PrincipalAdapter
getPassword
in interface PrincipalAdapter
user
- A user id.PrincipalAdapterException
- If any error occurs.public List<String> getUsersByRole(String role) throws PrincipalAdapterException
PrincipalAdapter
getUsersByRole
in interface PrincipalAdapter
PrincipalAdapterException
- If any error occurs.public List<String> getRolesByUser(String user) throws PrincipalAdapterException
PrincipalAdapter
getRolesByUser
in interface PrincipalAdapter
PrincipalAdapterException
- If any error occurs.Copyright © 2015. All Rights Reserved.