public class LdapIdentityProviderSession extends Object implements ReadOnlyIdentityProvider
LDAP ReadOnlyIdentityProvider.
| Modifier and Type | Field and Description |
|---|---|
protected LdapContext |
initialContext |
protected LdapConfiguration |
ldapConfiguration |
| Constructor and Description |
|---|
LdapIdentityProviderSession(LdapConfiguration ldapConfiguration) |
protected LdapConfiguration ldapConfiguration
protected LdapContext initialContext
public LdapIdentityProviderSession(LdapConfiguration ldapConfiguration)
protected InitialLdapContext openContext(String userDn, String password)
protected void ensureContextInitialized()
public User findUserById(String userId)
findUserById in interface ReadOnlyIdentityProviderpublic UserQuery createUserQuery()
createUserQuery in interface ReadOnlyIdentityProviderpublic UserQueryImpl createUserQuery(CommandContext commandContext)
createUserQuery in interface ReadOnlyIdentityProviderpublic NativeUserQuery createNativeUserQuery()
createNativeUserQuery in interface ReadOnlyIdentityProviderpublic long findUserCountByQueryCriteria(LdapUserQueryImpl query)
public List<User> findUserByQueryCriteria(LdapUserQueryImpl query)
protected List<User> findUsersByGroupId(LdapUserQueryImpl query)
public List<User> findUsersWithoutGroupId(LdapUserQueryImpl query, String userBaseDn, boolean ignorePagination)
public boolean checkPassword(String userId, String password)
checkPassword in interface ReadOnlyIdentityProviderprotected String getUserSearchFilter(LdapUserQueryImpl query)
public Group findGroupById(String groupId)
findGroupById in interface ReadOnlyIdentityProviderpublic GroupQuery createGroupQuery()
createGroupQuery in interface ReadOnlyIdentityProviderpublic GroupQuery createGroupQuery(CommandContext commandContext)
createGroupQuery in interface ReadOnlyIdentityProviderpublic long findGroupCountByQueryCriteria(LdapGroupQuery ldapGroupQuery)
public List<Group> findGroupByQueryCriteria(LdapGroupQuery query)
protected String getGroupSearchFilter(LdapGroupQuery query)
protected String getStringAttributeValue(String attrName, Attributes attributes) throws NamingException
NamingExceptionprotected void addFilter(String attributeName, String attributeValue, StringWriter writer)
protected LdapUserEntity transformUser(SearchResult result) throws NamingException
NamingExceptionprotected GroupEntity transformGroup(SearchResult result) throws NamingException
NamingExceptionprotected void applyRequestControls(AbstractQuery<?,?> query)
protected boolean isAuthenticatedUser(UserEntity user)
protected boolean isAuthorized(Permission permission, Resource resource, String resourceId)
public TenantQuery createTenantQuery()
createTenantQuery in interface ReadOnlyIdentityProviderpublic TenantQuery createTenantQuery(CommandContext commandContext)
createTenantQuery in interface ReadOnlyIdentityProviderpublic Tenant findTenantById(String id)
findTenantById in interface ReadOnlyIdentityProviderCopyright © 2013–2020 camunda services GmbH. All rights reserved.