|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAuthenticator
Nested Class Summary | |
---|---|
static class |
IAuthenticator.Option
Supported CREATE USER/ALTER USER options. |
Field Summary | |
---|---|
static java.lang.String |
PASSWORD_KEY
|
static java.lang.String |
USERNAME_KEY
|
Method Summary | |
---|---|
void |
alter(java.lang.String username,
java.util.Map<IAuthenticator.Option,java.lang.Object> options)
Called during execution of ALTER USER query. |
java.util.Set<IAuthenticator.Option> |
alterableOptions()
Subset of supportedOptions that users are allowed to alter when performing ALTER USER [themselves]. |
AuthenticatedUser |
authenticate(java.util.Map<java.lang.String,java.lang.String> credentials)
Authenticates a user given a Map |
void |
create(java.lang.String username,
java.util.Map<IAuthenticator.Option,java.lang.Object> options)
Called during execution of CREATE USER query (also may be called on startup, see seedSuperuserOptions method). |
void |
drop(java.lang.String username)
Called during execution of DROP USER query. |
java.util.Set<? extends IResource> |
protectedResources()
Set of resources that should be made inaccessible to users and only accessible internally. |
boolean |
requireAuthentication()
Whether or not the authenticator requires explicit login. |
void |
setup()
Setup is called once upon system startup to initialize the IAuthenticator. |
java.util.Set<IAuthenticator.Option> |
supportedOptions()
Set of options supported by CREATE USER and ALTER USER queries. |
void |
validateConfiguration()
Validates configuration of IAuthenticator implementation (if configurable). |
Field Detail |
---|
static final java.lang.String USERNAME_KEY
static final java.lang.String PASSWORD_KEY
Method Detail |
---|
boolean requireAuthentication()
java.util.Set<IAuthenticator.Option> supportedOptions()
java.util.Set<IAuthenticator.Option> alterableOptions()
AuthenticatedUser authenticate(java.util.Map<java.lang.String,java.lang.String> credentials) throws AuthenticationException
AuthenticationException
- if credentials don't match any known user.void create(java.lang.String username, java.util.Map<IAuthenticator.Option,java.lang.Object> options) throws InvalidRequestException
username
- Username of the user to create.options
- Options the user will be created with.
InvalidRequestException
void alter(java.lang.String username, java.util.Map<IAuthenticator.Option,java.lang.Object> options) throws InvalidRequestException
username
- Username of the user that will be altered.options
- Options to alter.
InvalidRequestException
void drop(java.lang.String username) throws InvalidRequestException
username
- Username of the user that will be dropped.
InvalidRequestException
java.util.Set<? extends IResource> protectedResources()
void validateConfiguration() throws ConfigurationException
ConfigurationException
- when there is a configuration error.void setup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |