All Downloads are FREE. Search and download functionalities are using the official Maven repository.

devutility.internal.ldap.LdapProperties Maven / Gradle / Ivy

There is a newer version: 1.3.8.1
Show newest version
package devutility.internal.ldap;

/**
 * 
 * LdapProperties
 * 
 * @author: Aldwin Su
 * @version: 2019-04-25 10:37:16
 */
public class LdapProperties {
	private String url;
	private String baseDn;
	private String principalPattern;
	private String filterPattern;

	public LdapProperties() {
	}

	public LdapProperties(String url, String baseDn) {
		this.url = url;
		this.baseDn = baseDn;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getBaseDn() {
		return baseDn;
	}

	public void setBaseDn(String baseDn) {
		this.baseDn = baseDn;
	}

	public String getPrincipalPattern() {
		return principalPattern;
	}

	public void setPrincipalPattern(String principalPattern) {
		this.principalPattern = principalPattern;
	}

	public String getFilterPattern() {
		return filterPattern;
	}

	public void setFilterPattern(String filterPattern) {
		this.filterPattern = filterPattern;
	}

	public String principal(Object... args) {
		return String.format(principalPattern, args);
	}

	public String filter(Object... args) {
		return String.format(filterPattern, args);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy