public class DirectoryConnectorService extends Object
Expose DirectoryConnectorService public API Initialize Spring context - once and in a threadsafe mode
| Modifier and Type | Method and Description |
|---|---|
static ConnectionResponse |
authenticate(Endpoint endpoint)
Authenticate a user against an AD endpoint
|
static ConnectionResponse |
authenticate(Endpoint endpointForAuth,
boolean allowEnabledOnly,
Endpoint endpoint)
Authenticate a user against an AD endpoint
|
static List<EntityResponse> |
getEntity(List<String> dns,
FieldType fieldType,
ObjectType objectType,
Endpoint endpoint) |
static EntityResponse |
getUserByGuid(byte[] guid,
Endpoint endpoint)
Deprecated.
Get user by GUID
|
static List<EntityResponse> |
getUsersInGroup(int maxUsersPerGroup,
List<String> groupNames,
Endpoint endpoint) |
static List<EntityResponse> |
getUsersInGroup(int maxUsersPerGroup,
List<String> groupNames,
List<FieldType> fields,
Endpoint endpoint)
Finds recursively all groups' members of the given group list
|
static List<EntityResponse> |
getUsersInGroup(int maxUsersPerGroup,
String groupName,
Endpoint endpoint) |
static List<EntityResponse> |
getUsersInGroup(List<String> groupNames,
Endpoint endpoint) |
static List<EntityResponse> |
getUsersInGroup(List<String> groupNames,
List<FieldType> fields,
Endpoint endpoint)
Finds recursively all groups' members of the given group list
|
static List<EntityResponse> |
getUsersInGroup(String groupName,
Endpoint endpoint)
Finds recursively all groups' members of the given group
|
static boolean |
isEnabled(Endpoint endpoint,
String username) |
static List<EntityResponse> |
isMemberOf(List<String> logonName,
Endpoint endpoint) |
static List<EntityResponse> |
isMemberOf(List<String> logonName,
Endpoint endpoint,
PagingCallback pagingCallback) |
static List<String> |
isMemberOf(String logonName,
List<String> groupsNames,
Endpoint endpoint)
Finds recursively the groups of the given user based on a pre-defined group list to be checked
|
static List<String> |
resolveDistinguishedName(List<String> names,
FieldType fieldType,
ObjectType objectType,
Endpoint endpoint)
Resolves the DN of the given FieldType
FieldType od the N given values |
static String |
resolveDistinguishedName(String name,
FieldType fieldType,
ObjectType objectType,
Endpoint endpoint)
Resolves the DN of the given FieldType
FieldType |
static ConnectionResponse |
testConnection(Endpoint endpoint)
Deprecated.
Test endpoint's connection
|
static TestQueryType |
testQuery(Endpoint endpoint)
Performs a small query to test that any user has been found in the given Endpoint
Endpoint |
static TestQueryType |
testQuery(Endpoint endpoint,
ObjectType objectType)
Performs a small query to test that any given objectType has been found in the given Endpoint
Endpoint |
public static ConnectionResponse authenticate(Endpoint endpoint)
endpoint - A Endpoint Authentication EndpointConnectionResponse An Object representing the Connection resultpublic static ConnectionResponse authenticate(Endpoint endpointForAuth, boolean allowEnabledOnly, Endpoint endpoint)
allowEnabledOnly - True false flag indicates whether disabled users should be considered not authenticatedendpoint - A Endpoint Authentication EndpointConnectionResponse An Object representing the Connection resultpublic static String resolveDistinguishedName(String name, FieldType fieldType, ObjectType objectType, Endpoint endpoint)
FieldTypename - The FieldType FieldType valuefieldType - The Requested FieldType FieldTypeobjectType - The Requested ObjectType ObjectTypeendpoint - The endpoint Endpoint to querypublic static List<String> resolveDistinguishedName(List<String> names, FieldType fieldType, ObjectType objectType, Endpoint endpoint)
FieldType od the N given valuesnames - The FieldType FieldType valuesfieldType - The Requested FieldType FieldTypeobjectType - The Requested ObjectType ObjectTypeendpoint - The endpoint Endpoint to querypublic static List<EntityResponse> getEntity(List<String> dns, FieldType fieldType, ObjectType objectType, Endpoint endpoint)
dns - fieldType - objectType - endpoint - public static List<String> isMemberOf(String logonName, List<String> groupsNames, Endpoint endpoint)
logonName - The user's logonNamegroupsNames - The Common Name of the groups to be checkedendpoint - The endpoint Endpoint to querypublic static List<EntityResponse> isMemberOf(List<String> logonName, Endpoint endpoint, PagingCallback pagingCallback)
public static List<EntityResponse> isMemberOf(List<String> logonName, Endpoint endpoint)
public static List<EntityResponse> getUsersInGroup(List<String> groupNames, List<FieldType> fields, Endpoint endpoint)
groupNames - The groups to be checkedendpoint - The endpoint Endpoint to querypublic static List<EntityResponse> getUsersInGroup(List<String> groupNames, Endpoint endpoint)
public static List<EntityResponse> getUsersInGroup(int maxUsersPerGroup, List<String> groupNames, Endpoint endpoint)
public static List<EntityResponse> getUsersInGroup(int maxUsersPerGroup, List<String> groupNames, List<FieldType> fields, Endpoint endpoint)
groupNames - The groups to be checkedfields - The requested information to query about each group memberendpoint - The endpoint Endpoint to querypublic static List<EntityResponse> getUsersInGroup(String groupName, Endpoint endpoint)
groupName - The group to be checkedendpoint - The endpoint Endpoint to querypublic static List<EntityResponse> getUsersInGroup(int maxUsersPerGroup, String groupName, Endpoint endpoint)
public static EntityResponse getUserByGuid(byte[] guid, Endpoint endpoint)
guid - User's GUIDendpoint - The endpoint Endpoint to querypublic static TestQueryType testQuery(Endpoint endpoint) throws Exception
Endpointendpoint - The endpoint Endpoint to queryTestQueryTypeExceptionpublic static TestQueryType testQuery(Endpoint endpoint, ObjectType objectType) throws Exception
Endpointendpoint - The endpoint Endpoint to queryobjectType - The Object type to query forTestQueryTypeExceptionpublic static ConnectionResponse testConnection(Endpoint endpoint)
endpoint - The endpoint Endpoint to queryConnectionResponseCopyright © 2020. All rights reserved.