|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.SecurityManager
org.altlinux.jabbix.JabbixSecurityManager
public class JabbixSecurityManager
A 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 Summary | |
---|---|
JabbixSecurityManager()
Creates an instance of the manager. |
Method Summary | |
---|---|
void |
checkAccept(String host,
int port)
Check the permission to accept a connection from the specified host and port using the set of predicates. |
void |
checkConnect(String host,
int port)
Check the permission to connect to the specified host and port using the set of predicates. |
Collection<ConnectionPredicate> |
getConnectionPredicates()
Returns a set of connection predicates defining the permission to connect to remote hosts. |
Collection<ConnectionPredicate> |
getListenPredicates()
Returns a set of connection predicates defining the permission to accept connections from remote hosts. |
void |
setConnectionPredicates(Collection<ConnectionPredicate> connPreds)
Sets a set of connection predicates defining the permission to connect to remote hosts. |
void |
setListenPredicates(Collection<ConnectionPredicate> listenPreds)
Sets a set of connection predicates defining the permission to accept connections from remote hosts. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JabbixSecurityManager()
Method Detail |
---|
public void checkAccept(String host, int port)
checkAccept
in class SecurityManager
public void checkConnect(String host, int port)
checkConnect
in class SecurityManager
public Collection<ConnectionPredicate> getConnectionPredicates()
public void setConnectionPredicates(Collection<ConnectionPredicate> connPreds)
connPreds
- a set of predicates to test outcoming connections onpublic void setListenPredicates(Collection<ConnectionPredicate> listenPreds)
listenPreds
- a set of predicates to test incoming connections onpublic Collection<ConnectionPredicate> getListenPredicates()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |