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
package org.jivesoftware.messenger.component;
/**
* Holds the configuration for external components that want to connect to this server. The
* configuration specifies if the external component is allowed to connect to the server as well
* as the shared secret between the server and the component. If no secret or configuration was
* defined then the default shared secret will be used.
*
* @author Gaston Dombiak
*/
public class ExternalComponentConfiguration {
private String subdomain;
private Permission permission;
private String secret;
public ExternalComponentConfiguration(String subdomain) {
this.subdomain = subdomain;
}
public String getSubdomain() {
return subdomain;
}
public Permission getPermission() {
return permission;
}
public void setPermission(Permission permission) {
this.permission = permission;
}
public String getSecret() {
return secret;
}
public void setSecret(String secret) {
this.secret = secret;
}
public enum Permission {
/**
* The XMPP entity is allowed to connect to the server.
*/
allowed,
/**
* The XMPP entity is NOT allowed to connect to the server.
*/
blocked;
}
}