Class TestLdapConnectionResource
- java.lang.Object
-
- org.keycloak.services.resources.admin.TestLdapConnectionResource
-
public class TestLdapConnectionResource extends Object
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected AdminPermissionEvaluatorauthprotected RealmModelrealmprotected KeycloakSessionsession
-
Constructor Summary
Constructors Constructor Description TestLdapConnectionResource(KeycloakSession session, AdminPermissionEvaluator auth)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.ws.rs.core.ResponsetestLDAPConnection(String action, String connectionUrl, String bindDn, String bindCredential, String useTruststoreSpi, String connectionTimeout, String componentId, String startTls)Deprecated.javax.ws.rs.core.ResponsetestLDAPConnection(TestLdapConnectionRepresentation config)Test LDAP connection
-
-
-
Field Detail
-
realm
protected final RealmModel realm
-
auth
protected final AdminPermissionEvaluator auth
-
session
protected final KeycloakSession session
-
-
Constructor Detail
-
TestLdapConnectionResource
public TestLdapConnectionResource(KeycloakSession session, AdminPermissionEvaluator auth)
-
-
Method Detail
-
testLDAPConnection
@POST @Consumes("application/x-www-form-urlencoded") @Deprecated public javax.ws.rs.core.Response testLDAPConnection(@FormParam("action") String action, @FormParam("connectionUrl") String connectionUrl, @FormParam("bindDn") String bindDn, @FormParam("bindCredential") String bindCredential, @FormParam("useTruststoreSpi") String useTruststoreSpi, @FormParam("connectionTimeout") String connectionTimeout, @FormParam("componentId") String componentId, @FormParam("startTls") String startTls)Deprecated.Test LDAP connection- Parameters:
action-connectionUrl-bindDn-bindCredential-- Returns:
-
testLDAPConnection
@POST @Consumes("application/json") public javax.ws.rs.core.Response testLDAPConnection(TestLdapConnectionRepresentation config)Test LDAP connection- Returns:
-
-