|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.component.ExternalComponentManager
public class ExternalComponentManager
Manages the connection permissions for external components. When an external component is allowed to connect to this server then a special configuration for the component will be kept. The configuration holds information such as the shared secret that the component should use when authenticating with the server.
Nested Class Summary | |
---|---|
static class |
ExternalComponentManager.PermissionPolicy
|
Constructor Summary | |
---|---|
ExternalComponentManager()
|
Method Summary | |
---|---|
static void |
allowAccess(ExternalComponentConfiguration configuration)
Allows an external component to connect to the local server with the specified configuration. |
static void |
blockAccess(String subdomain)
Blocks an external component from connecting to the local server. |
static boolean |
canAccess(String subdomain)
Returns true if the external component with the specified subdomain can connect to the local server. |
static void |
deleteConfiguration(String subdomain)
Removes any existing defined permission and configuration for the specified external component. |
static Collection<ExternalComponentConfiguration> |
getAllowedComponents()
Returns the list of registered external components that are allowed to connect to this server when using a whitelist policy. |
static Collection<ExternalComponentConfiguration> |
getBlockedComponents()
Returns the list of external components that are NOT allowed to connect to this server. |
static ExternalComponentConfiguration |
getConfiguration(String subdomain)
Returns the configuration for an external component. |
static String |
getDefaultSecret()
Returns the default secret key to use for those external components that don't have an individual configuration. |
static ExternalComponentManager.PermissionPolicy |
getPermissionPolicy()
Returns the permission policy being used for new XMPP entities that are trying to connect to the server. |
static String |
getSecretForComponent(String subdomain)
Returns the shared secret with the specified external component. |
static void |
setDefaultSecret(String defaultSecret)
Sets the default secret key to use for those external components that don't have an individual configuration. |
static void |
setPermissionPolicy(ExternalComponentManager.PermissionPolicy policy)
Sets the permission policy being used for new XMPP entities that are trying to connect to the server. |
static void |
setPermissionPolicy(String policy)
Sets the permission policy being used for new XMPP entities that are trying to connect to the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalComponentManager()
Method Detail |
---|
public static void allowAccess(ExternalComponentConfiguration configuration)
configuration
- the configuration for the external component.public static void blockAccess(String subdomain)
subdomain
- the subdomain of the external component that is not allowed to connect.public static boolean canAccess(String subdomain)
subdomain
- the subdomain of the external component.
public static Collection<ExternalComponentConfiguration> getAllowedComponents()
public static Collection<ExternalComponentConfiguration> getBlockedComponents()
public static void deleteConfiguration(String subdomain)
subdomain
- the subdomain of the external component.public static ExternalComponentConfiguration getConfiguration(String subdomain)
subdomain
- the subdomain of the external component.
public static String getDefaultSecret()
public static void setDefaultSecret(String defaultSecret)
defaultSecret
- the default secret key to use for those external components that
don't have an individual configuration.public static String getSecretForComponent(String subdomain)
subdomain
- the subdomain of the external component to get his shared secret.
(e.g. conference)
public static ExternalComponentManager.PermissionPolicy getPermissionPolicy()
public static void setPermissionPolicy(ExternalComponentManager.PermissionPolicy policy)
policy
- the new PermissionPolicy to use.public static void setPermissionPolicy(String policy)
policy
- the new policy to use.
|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |