io.gravitee.resource.authprovider.ldap.configuration.LdapAuthenticationProviderResourceConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gravitee-resource-auth-provider-ldap Show documentation
Show all versions of gravitee-resource-auth-provider-ldap Show documentation
The resource is defined to authenticate a user in LDAP.
The newest version!
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gravitee.resource.authprovider.ldap.configuration;
import io.gravitee.resource.api.ResourceConfiguration;
import java.util.List;
/**
* @author David BRASSELY (david.brassely at graviteesource.com)
* @author GraviteeSource Team
*/
public class LdapAuthenticationProviderResourceConfiguration implements ResourceConfiguration {
private String contextSourceUrl;
private boolean useStartTLS;
private String contextSourceBase;
private String contextSourceUsername;
private String contextSourcePassword;
private String userSearchBase = "";
private String userSearchFilter;
private List attributes;
private int cacheMaxElements = 100;
private int cacheTimeToLive = 60000;
private Long connectTimeout = 5000L;
private Long responseTimeout = 5000L;
private Integer minPoolSize = 5;
private Integer maxPoolSize = 15;
public String getContextSourceUrl() {
return contextSourceUrl;
}
public void setContextSourceUrl(String contextSourceUrl) {
this.contextSourceUrl = contextSourceUrl;
}
public boolean isUseStartTLS() {
return useStartTLS;
}
public void setUseStartTLS(boolean useStartTLS) {
this.useStartTLS = useStartTLS;
}
public String getContextSourceBase() {
return contextSourceBase;
}
public void setContextSourceBase(String contextSourceBase) {
this.contextSourceBase = contextSourceBase;
}
public String getContextSourceUsername() {
return contextSourceUsername;
}
public void setContextSourceUsername(String contextSourceUsername) {
this.contextSourceUsername = contextSourceUsername;
}
public String getContextSourcePassword() {
return contextSourcePassword;
}
public void setContextSourcePassword(String contextSourcePassword) {
this.contextSourcePassword = contextSourcePassword;
}
public String getUserSearchBase() {
return userSearchBase;
}
public void setUserSearchBase(String userSearchBase) {
this.userSearchBase = userSearchBase;
}
public String getUserSearchFilter() {
return userSearchFilter;
}
public void setUserSearchFilter(String userSearchFilter) {
this.userSearchFilter = userSearchFilter;
}
public List getAttributes() {
return attributes;
}
public void setAttributes(List attributes) {
this.attributes = attributes;
}
public Long getConnectTimeout() {
return connectTimeout;
}
public void setConnectTimeout(Long connectTimeout) {
this.connectTimeout = connectTimeout;
}
public Long getResponseTimeout() {
return responseTimeout;
}
public void setResponseTimeout(Long responseTimeout) {
this.responseTimeout = responseTimeout;
}
public Integer getMinPoolSize() {
return minPoolSize;
}
public void setMinPoolSize(Integer minPoolSize) {
this.minPoolSize = minPoolSize;
}
public Integer getMaxPoolSize() {
return maxPoolSize;
}
public void setMaxPoolSize(Integer maxPoolSize) {
this.maxPoolSize = maxPoolSize;
}
public int getCacheMaxElements() {
return cacheMaxElements;
}
public void setCacheMaxElements(int cacheMaxElements) {
this.cacheMaxElements = cacheMaxElements;
}
public int getCacheTimeToLive() {
return cacheTimeToLive;
}
public void setCacheTimeToLive(int cacheTimeToLive) {
this.cacheTimeToLive = cacheTimeToLive;
}
}