public interface AuthenticationProvider
ServerPlugin.registerExtension(ServerPluginManager spm )
of your server plugin you write:
spm.register( AuthenticationProvider.class, new YourCustomAuthenticationProvider() );
to register your provider.Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
applySettings(java.util.Map<java.lang.String,java.lang.String> clientProperties,
Configuration config)
Convert the properties from the GUI to the properties that should be saved.
|
LoginProcessor |
create(AuthenticationDescription description)
Create an instance of LoginProcessor for the given description.
|
LoginProcessor |
createLoginProcessor(AuthenticationDescription description,
java.lang.String authorization,
javax.servlet.http.HttpServletRequest request,
boolean isApplication)
Create an instance of a LoginProcessor if possible.
|
AuthenticationDescription |
getAuthenticationDescription(java.util.HashMap<java.lang.String,java.lang.String> settings,
boolean isApplication,
boolean isProxy)
Get the AuthenticationDescription for the given configuration settings and logging
|
java.lang.String |
getDisplayName(java.util.HashMap<java.lang.String,java.lang.String> settings)
Get the display name for the GUI.
|
int |
getPriority()
The order of providers if the "automatic" login method is selected and the order in drop down boxes of the GUI is determined
using this priority value.
|
default boolean |
isMultipleDescriptionSupported()
Returns if the provider supports multiple AuthenticationDescription.
|
java.lang.String |
name()
The unique name of this provider.
|
default void |
transformGuiProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Transform the loaded values to the format needed for the configuration GUI
|
@Nonnull java.lang.String name()
int getPriority()
@Nonnull LoginProcessor create(AuthenticationDescription description)
description
- the description of the login@Nullable LoginProcessor createLoginProcessor(AuthenticationDescription description, @Nullable java.lang.String authorization, javax.servlet.http.HttpServletRequest request, boolean isApplication)
If the description is invalid then it return null. It also returns null if the given Authorization header is not supported.
description
- the description of the loginauthorization
- the current HTTP Authorization headerrequest
- current requestisApplication
- true, if the request come NOT from a browser.@Nonnull java.lang.String getDisplayName(@Nullable java.util.HashMap<java.lang.String,java.lang.String> settings)
settings
- the settings in the configuration manager@Nullable AuthenticationDescription getAuthenticationDescription(java.util.HashMap<java.lang.String,java.lang.String> settings, boolean isApplication, boolean isProxy)
settings
- the settings in the configuration managerisApplication
- if the call was make from an applicationisProxy
- if the call was make through an proxy@Nonnull java.util.Map<java.lang.String,java.lang.String> applySettings(java.util.Map<java.lang.String,java.lang.String> clientProperties, Configuration config)
clientProperties
- properties from the GUIconfig
- the Configuration that will edit in the configuration manager GUIdefault void transformGuiProperties(@Nonnull java.util.Map<java.lang.String,java.lang.Object> properties)
properties
- the loaded propertiesdefault boolean isMultipleDescriptionSupported()
Copyright © 1999-2020 by i-net software GmbH