|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.astrogrid.samp.web.ClientAuthorizers
public class ClientAuthorizers
Utility class containing ClientAuthorizer implementations.
| Field Summary | |
|---|---|
static ClientAuthorizer |
FALSE
Authorizer which always denies access, with INFO logging either way. |
static ClientAuthorizer |
TRUE
Authorizer which always permits access, with WARNING logging either way. |
| Method Summary | |
|---|---|
static ClientAuthorizer |
createFixedClientAuthorizer(boolean policy)
Returns a new authorizer instance which always produces the same authorization status. |
static ClientAuthorizer |
createLoggingClientAuthorizer(ClientAuthorizer auth,
Level acceptLevel,
Level refuseLevel)
Returns a new authorizer instance based on an existing one which logs authorization results through the logging system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ClientAuthorizer FALSE
public static final ClientAuthorizer TRUE
| Method Detail |
|---|
public static ClientAuthorizer createFixedClientAuthorizer(boolean policy)
policy - value to return from the authorize method
public static ClientAuthorizer createLoggingClientAuthorizer(ClientAuthorizer auth,
Level acceptLevel,
Level refuseLevel)
auth - base authorizeracceptLevel - logging level at which auth acceptances are loggedrefuseLevel - logging level at which auth refusals are logged
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||