-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathLdapOptions.java
104 lines (80 loc) · 2.33 KB
/
LdapOptions.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package net.unicon;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import javax.naming.spi.InitialContextFactory;
// Component ensures Spring will manage a bean of this class
// and ConfigurationProperties is an easy way to map all the properties under "ldap.*" to type strict values
@Component
@ConfigurationProperties("ldap")
public class LdapOptions {
private String[] urls;
private String userId;
private String password;
private String baseDn;
private String filter;
private String authnPassword;
private String[] attributes;
private Class<? extends InitialContextFactory> factory;
private String authentication;
private Integer timeout;
public String[] getUrls() {
return urls;
}
public void setUrls(String[] urls) {
this.urls = urls;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getBaseDn() {
return baseDn;
}
public void setBaseDn(String baseDn) {
this.baseDn = baseDn;
}
public String getFilter() {
return filter;
}
public void setFilter(String filter) {
this.filter = filter;
}
public String getAuthnPassword() {
return authnPassword;
}
public void setAuthnPassword(String authnPassword) {
this.authnPassword = authnPassword;
}
public String[] getAttributes() {
return attributes;
}
public void setAttributes(String[] attributes) {
this.attributes = attributes;
}
public Class<? extends InitialContextFactory> getFactory() {
return factory;
}
public void setFactory(Class<? extends InitialContextFactory> factory) {
this.factory = factory;
}
public String getAuthentication() {
return authentication;
}
public void setAuthentication(String authentication) {
this.authentication = authentication;
}
public Integer getTimeout() {
return timeout;
}
public void setTimeout(Integer timeout) {
this.timeout = timeout;
}
}