Package org.ametys.core.authentication
Class DefaultCredentialProviderModel
java.lang.Object
org.ametys.core.authentication.DefaultCredentialProviderModel
- All Implemented Interfaces:
CredentialProviderModel
Default implementation of
CredentialProviderModel
-
Constructor Summary
ConstructorDescriptionDefaultCredentialProviderModel
(String id, Class<CredentialProvider> udClass, Configuration cpConfig, I18nizableText label, I18nizableText description, I18nizableText connectionLabel, String iconGlyph, String iconDecorator, String iconSmall, String iconMedium, String iconLarge, String color, Map<String, ? extends ElementDefinition> parameters, Map<String, ? extends ItemCheckerDescriptor> parameterCheckers, String pluginName) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Get the color of the credential providerGet the label for the connection screen of the credential providerGet the credential provider classGet the additional configuration for the implementation ofCredentialProvider
Get the description text of the credential provider.Get the CSS class for the glyph decorator iconGet the CSS class for the glyph iconGet the path of the small icon resourceGet the path of the small icon resourceGet the path of the small icon resourcegetId()
Get the id of this credential providergetLabel()
Get the label of the credential provider.Map<String,
? extends ItemCheckerDescriptor> Get the configuration parameter checkersMap<String,
? extends ElementDefinition> Get the configuration parametersReturns the plugin name of declaration (for debug purpose)
-
Constructor Details
-
DefaultCredentialProviderModel
public DefaultCredentialProviderModel(String id, Class<CredentialProvider> udClass, Configuration cpConfig, I18nizableText label, I18nizableText description, I18nizableText connectionLabel, String iconGlyph, String iconDecorator, String iconSmall, String iconMedium, String iconLarge, String color, Map<String, ? extends ElementDefinition> parameters, Map<String, ? extends ItemCheckerDescriptor> parameterCheckers, String pluginName) Constructor- Parameters:
id
- The unique identifier of this credential provider modeludClass
- TheCredentialProvider
classcpConfig
- Additional configuration forCredentialProvider
class. Can be empty.label
- The i18n labeldescription
- The i18n descriptionconnectionLabel
- The i18n label for the connection screeniconGlyph
- The CSS class for glyph iconiconDecorator
- The CSS class for glyph decorator iconiconSmall
- The path of the small icon resourceiconMedium
- The path of the medium icon resourceiconLarge
- The path of the large icon resourcecolor
- The string representation of the color which will be used for the button in the connection screenparameters
- The parametersparameterCheckers
- the parameter checkerspluginName
- The plugin's name of declaration (for debug purpose)
-
-
Method Details
-
getId
Description copied from interface:CredentialProviderModel
Get the id of this credential provider- Specified by:
getId
in interfaceCredentialProviderModel
- Returns:
- the id of this credential provider
-
getLabel
Description copied from interface:CredentialProviderModel
Get the label of the credential provider.- Specified by:
getLabel
in interfaceCredentialProviderModel
- Returns:
- the label of the credential provider
-
getDescription
Description copied from interface:CredentialProviderModel
Get the description text of the credential provider.- Specified by:
getDescription
in interfaceCredentialProviderModel
- Returns:
- the description of the credential provider
-
getConnectionLabel
Description copied from interface:CredentialProviderModel
Get the label for the connection screen of the credential provider- Specified by:
getConnectionLabel
in interfaceCredentialProviderModel
- Returns:
- the label for the connection screen of the credential provider
-
getIconGlyph
Description copied from interface:CredentialProviderModel
Get the CSS class for the glyph icon- Specified by:
getIconGlyph
in interfaceCredentialProviderModel
- Returns:
- the CSS class for the glyph icon
-
getIconDecorator
Description copied from interface:CredentialProviderModel
Get the CSS class for the glyph decorator icon- Specified by:
getIconDecorator
in interfaceCredentialProviderModel
- Returns:
- the CSS class for the glyph decorator icon
-
getIconSmall
Description copied from interface:CredentialProviderModel
Get the path of the small icon resource- Specified by:
getIconSmall
in interfaceCredentialProviderModel
- Returns:
- the path of the small icon resource
-
getIconMedium
Description copied from interface:CredentialProviderModel
Get the path of the small icon resource- Specified by:
getIconMedium
in interfaceCredentialProviderModel
- Returns:
- the path of the small icon resource
-
getIconLarge
Description copied from interface:CredentialProviderModel
Get the path of the small icon resource- Specified by:
getIconLarge
in interfaceCredentialProviderModel
- Returns:
- the path of the small icon resource
-
getColor
Description copied from interface:CredentialProviderModel
Get the color of the credential provider- Specified by:
getColor
in interfaceCredentialProviderModel
- Returns:
- the color of the credential provider
-
getParameters
Description copied from interface:CredentialProviderModel
Get the configuration parameters- Specified by:
getParameters
in interfaceCredentialProviderModel
- Returns:
- The configuration parameters
-
getParameterCheckers
Description copied from interface:CredentialProviderModel
Get the configuration parameter checkers- Specified by:
getParameterCheckers
in interfaceCredentialProviderModel
- Returns:
- The configuration parameter checkers
-
getPluginName
Description copied from interface:CredentialProviderModel
Returns the plugin name of declaration (for debug purpose)- Specified by:
getPluginName
in interfaceCredentialProviderModel
- Returns:
- the plugin name
-
getCredentialProviderClass
Description copied from interface:CredentialProviderModel
Get the credential provider class- Specified by:
getCredentialProviderClass
in interfaceCredentialProviderModel
- Returns:
- the credential provider class
-
getCredentialProviderConfiguration
Description copied from interface:CredentialProviderModel
Get the additional configuration for the implementation ofCredentialProvider
- Specified by:
getCredentialProviderConfiguration
in interfaceCredentialProviderModel
- Returns:
- the additional configuration.
-