public class AuthenticationPluginDecorator extends java.lang.Object implements AuthenticationPlugin
| Constructor and Description |
|---|
AuthenticationPluginDecorator(AuthenticationPlugin authenticationPlugin) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationResult |
authenticate(java.util.Map<AuthenticationParams,java.lang.Object> params)
Tries to authenticate a user.
|
Context |
createGlobalConfigContext(Context rootContext,
boolean requestReboot,
VariableDefinition... properties)
This method creates and returns context containing plugin's global configuration.
|
Context |
createUserConfigContext(Context userContext,
boolean requestReboot,
VariableDefinition... properties)
This method creates and returns context containing plugin's user-level configuration.
|
java.lang.String |
getDescription()
Returns plugin description
|
Context |
getGlobalConfigContext()
Returns plugin's global configuration context
|
java.lang.String |
getId()
Returns plugin ID
|
java.lang.String |
getShortId()
Returns plugin short ID (last "segment" of full ID).
|
int |
getSortIndex()
Returns sort index used to sort plugins in the list.
|
Context |
getUserConfigContext(java.lang.String username)
Returns plugin's user-level configuration context or NULL if user-level configuration is disabled for the user.
|
void |
globalDeinit(Context rootContext)
This method is called once during server shutdown.
|
void |
globalInit(Context rootContext)
This method is called once during server startup.
|
void |
globalStart()
This method is called once for every plugin at the moment when server context tree is fully initialized and all contexts are available.
|
void |
globalStop()
This method is called once for every plugin upon server shutdown.
|
boolean |
isAuthenticationByPassword() |
void |
logout(java.util.Map<AuthenticationParams,java.lang.Object> params)
Logout external session
|
AuthenticationResult |
refreshToken(com.google.common.collect.ImmutableMap<AuthenticationParams,java.lang.Object> params) |
void |
userDeinit(Context userContext)
This method is called once for every system user upon its deletion or server shutdown.
|
void |
userInit(Context userContext)
This method is called once for every system user upon its creation or server startup.
|
public AuthenticationPluginDecorator(AuthenticationPlugin authenticationPlugin)
public java.lang.String getId()
AggreGatePlugingetId in interface AggreGatePluginpublic java.lang.String getShortId()
AggreGatePlugingetShortId in interface AggreGatePluginpublic java.lang.String getDescription()
AggreGatePlugingetDescription in interface AggreGatePluginpublic int getSortIndex()
AggreGatePlugingetSortIndex in interface AggreGatePluginpublic void globalInit(Context rootContext) throws PluginException
AggreGatePluginglobalInit in interface AggreGatePluginPluginException - If an error occurred during initializationpublic void userInit(Context userContext) throws PluginException
AggreGatePluginuserInit in interface AggreGatePluginPluginException - If an error occurred during initializationpublic void globalDeinit(Context rootContext) throws PluginException
AggreGatePluginglobalDeinit in interface AggreGatePluginPluginException - If an error occurred during de-initializationpublic void userDeinit(Context userContext) throws PluginException
AggreGatePluginuserDeinit in interface AggreGatePluginPluginException - If an error occurred during de-initializationpublic void globalStart()
throws PluginException
AggreGatePluginglobalStart in interface AggreGatePluginPluginException - If an error occurred during plugin startuppublic void globalStop()
throws PluginException
AggreGatePluginglobalStop in interface AggreGatePluginPluginException - If an error occurred during plugin shutdownpublic Context createGlobalConfigContext(Context rootContext, boolean requestReboot, VariableDefinition... properties)
AggreGatePlugincreateGlobalConfigContext in interface AggreGatePluginrootContext - Server root contextrequestReboot - Prompt an operator to reboot server after a global plugin property changeproperties - List of global plugin propertiespublic Context createUserConfigContext(Context userContext, boolean requestReboot, VariableDefinition... properties)
AggreGatePlugincreateUserConfigContext in interface AggreGatePluginuserContext - Context of user to associate the configuration withrequestReboot - Prompt an operator to reboot server after a global plugin property changeproperties - List of user-level plugin propertiespublic Context getGlobalConfigContext()
AggreGatePlugingetGlobalConfigContext in interface AggreGatePluginpublic Context getUserConfigContext(java.lang.String username)
AggreGatePlugingetUserConfigContext in interface AggreGatePluginpublic AuthenticationResult authenticate(java.util.Map<AuthenticationParams,java.lang.Object> params) throws PluginException, ContextException
AuthenticationPluginauthenticate in interface AuthenticationPluginparams - Authentication paramsPluginExceptionContextExceptionpublic boolean isAuthenticationByPassword()
isAuthenticationByPassword in interface AuthenticationPluginpublic AuthenticationResult refreshToken(com.google.common.collect.ImmutableMap<AuthenticationParams,java.lang.Object> params) throws ContextException
refreshToken in interface AuthenticationPluginContextExceptionpublic void logout(java.util.Map<AuthenticationParams,java.lang.Object> params) throws ContextException
AuthenticationPluginlogout in interface AuthenticationPluginContextException