public class ClientAuthorizers
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ClientAuthorizer |
FALSE
Authorizer which always denies access,
with INFO logging either way.
|
private static java.util.logging.Logger |
logger_ |
private static ClientAuthorizer |
swingAuth_
Authorizer which queries the user via a popup dialogue,
with INFO logging either way.
|
static ClientAuthorizer |
TRUE
Authorizer which always permits access,
with WARNING logging either way.
|
| Modifier | Constructor and Description |
|---|---|
private |
ClientAuthorizers() |
| Modifier and Type | Method and Description |
|---|---|
static ClientAuthorizer |
createFixedClientAuthorizer(boolean policy)
Returns a new authorizer instance which always produces the same
authorization status.
|
static ClientAuthorizer |
createLoggingClientAuthorizer(ClientAuthorizer auth,
java.util.logging.Level acceptLevel,
java.util.logging.Level refuseLevel)
Returns a new authorizer instance based on an existing one which
logs authorization results through the logging system.
|
public static final ClientAuthorizer FALSE
public static final ClientAuthorizer TRUE
private static ClientAuthorizer swingAuth_
private static final java.util.logging.Logger logger_
public static ClientAuthorizer createFixedClientAuthorizer(boolean policy)
policy - value to return from the authorize methodpublic static ClientAuthorizer createLoggingClientAuthorizer(ClientAuthorizer auth, java.util.logging.Level acceptLevel, java.util.logging.Level refuseLevel)
auth - base authorizeracceptLevel - logging level at which auth acceptances are loggedrefuseLevel - logging level at which auth refusals are logged