|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Collection of one or more access rules.
Method Summary | |
void |
dispose()
Disposes this access rule. |
Boolean |
isAllowed(String ip,
String functionName)
Determines if the specified IP address is allowed to access the specified function. |
Method Detail |
public Boolean isAllowed(String ip, String functionName) throws IllegalArgumentException, ParseException
This method finds the first matching rule and then returns the
allow property of that rule (see
AccessRule.isAllowRule()
). If there is no matching rule, then
null
is returned.
ip
- the IP address, cannot be null
.functionName
- the name of the function, cannot be null
.
Boolean.TRUE
if the specified IP address is allowed to access
the specified function, Boolean.FALSE
if it is disallowed
access or null
if there is no match.
IllegalStateException
- if dispose()
has been called previously
(since XINS 1.3.0).
IllegalArgumentException
- if ip == null || functionName == null
.
ParseException
- if the specified IP address is malformed.public void dispose()
Once disposed, the isAllowed(java.lang.String, java.lang.String)
method should no longer be
called.
IllegalStateException
- if dispose()
has been called previously
(since XINS 1.3.0).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |