Package org.ametys.core.authentication
Class DefaultCredentialProviderModel
- java.lang.Object
-
- org.ametys.core.authentication.DefaultCredentialProviderModel
-
- All Implemented Interfaces:
CredentialProviderModel
public class DefaultCredentialProviderModel extends Object implements CredentialProviderModel
Default implementation ofCredentialProviderModel
-
-
Constructor Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getColor()
Get the color of the credential providerI18nizableText
getConnectionLabel()
Get the label for the connection screen of the credential providerClass<CredentialProvider>
getCredentialProviderClass()
Get the credential provider classConfiguration
getCredentialProviderConfiguration()
Get the additional configuration for the implementation ofCredentialProvider
I18nizableText
getDescription()
Get the description text of the credential provider.String
getIconDecorator()
Get the CSS class for the glyph decorator iconString
getIconGlyph()
Get the CSS class for the glyph iconString
getIconLarge()
Get the path of the small icon resourceString
getIconMedium()
Get the path of the small icon resourceString
getIconSmall()
Get the path of the small icon resourceString
getId()
Get the id of this credential providerI18nizableText
getLabel()
Get the label of the credential provider.Map<String,? extends ItemCheckerDescriptor>
getParameterCheckers()
Get the configuration parameter checkersMap<String,? extends ElementDefinition>
getParameters()
Get the configuration parametersString
getPluginName()
Returns the plugin name of declaration (for debug purpose)
-
-
-
Constructor Detail
-
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 Detail
-
getId
public String 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
public I18nizableText 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
public I18nizableText 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
public I18nizableText 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
public String 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
public String 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
public String 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
public String 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
public String 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
public String 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
public Map<String,? extends ElementDefinition> getParameters()
Description copied from interface:CredentialProviderModel
Get the configuration parameters- Specified by:
getParameters
in interfaceCredentialProviderModel
- Returns:
- The configuration parameters
-
getParameterCheckers
public Map<String,? extends ItemCheckerDescriptor> getParameterCheckers()
Description copied from interface:CredentialProviderModel
Get the configuration parameter checkers- Specified by:
getParameterCheckers
in interfaceCredentialProviderModel
- Returns:
- The configuration parameter checkers
-
getPluginName
public String 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
public Class<CredentialProvider> getCredentialProviderClass()
Description copied from interface:CredentialProviderModel
Get the credential provider class- Specified by:
getCredentialProviderClass
in interfaceCredentialProviderModel
- Returns:
- the credential provider class
-
getCredentialProviderConfiguration
public Configuration getCredentialProviderConfiguration()
Description copied from interface:CredentialProviderModel
Get the additional configuration for the implementation ofCredentialProvider
- Specified by:
getCredentialProviderConfiguration
in interfaceCredentialProviderModel
- Returns:
- the additional configuration.
-
-