public class JabbixSecurityManager
extends java.lang.SecurityManager
SecurityManager
implementation used to manage access to and from a
Jabbix program. To set the connection permissions the two separate sets of
predicates are used.Constructor and Description |
---|
JabbixSecurityManager()
Creates an instance of the manager.
|
Modifier and Type | Method and Description |
---|---|
void |
checkAccept(java.lang.String host,
int port)
Check the permission to accept a connection from the specified host and
port using the set of predicates.
|
void |
checkConnect(java.lang.String host,
int port)
Check the permission to connect to the specified host and port using the
set of predicates.
|
java.util.Collection<ConnectionPredicate> |
getConnectionPredicates()
Returns a set of connection predicates defining the permission to connect
to remote hosts.
|
java.util.Collection<ConnectionPredicate> |
getListenPredicates()
Returns a set of connection predicates defining the permission to accept
connections from remote hosts.
|
void |
setConnectionPredicates(java.util.Collection<ConnectionPredicate> connPreds)
Sets a set of connection predicates defining the permission to connect to
remote hosts.
|
void |
setListenPredicates(java.util.Collection<ConnectionPredicate> listenPreds)
Sets a set of connection predicates defining the permission to accept
connections from remote hosts.
|
checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, getInCheck, getSecurityContext, getThreadGroup
public JabbixSecurityManager()
public void checkAccept(java.lang.String host, int port)
checkAccept
in class java.lang.SecurityManager
public void checkConnect(java.lang.String host, int port)
checkConnect
in class java.lang.SecurityManager
public java.util.Collection<ConnectionPredicate> getConnectionPredicates()
public void setConnectionPredicates(java.util.Collection<ConnectionPredicate> connPreds)
connPreds
- a set of predicates to test outcoming connections onpublic void setListenPredicates(java.util.Collection<ConnectionPredicate> listenPreds)
listenPreds
- a set of predicates to test incoming connections onpublic java.util.Collection<ConnectionPredicate> getListenPredicates()