Class TokenBasedLoginModuleDescriptor
- java.lang.Object
-
- jetbrains.buildServer.serverSide.auth.AuthModuleTypeAdapter
-
- jetbrains.buildServer.serverSide.auth.LoginModuleDescriptorAdapter
-
- jetbrains.buildServer.serverSide.impl.auth.TokenBasedLoginModuleDescriptor
-
- All Implemented Interfaces:
AuthModuleType
,FirstInPositionAwareLoginModuleDescriptor
,LoginModuleDescriptor
,PositionAware
,PositionConstraintAware
public class TokenBasedLoginModuleDescriptor extends LoginModuleDescriptorAdapter implements FirstInPositionAwareLoginModuleDescriptor
- Author:
- Dmitrii Bogdanov
-
-
Field Summary
Fields Modifier and Type Field Description static String
TOKEN_AUTH
-
Constructor Summary
Constructors Constructor Description TokenBasedLoginModuleDescriptor(LoginConfiguration loginConfiguration, TokenAuthenticationModel tokenAuthenticationModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PositionConstraint
getConstraint()
Constraint to be respected during objects sorting.String
getDescription()
Returns description of the authentication module to show in the UIString
getDisplayName()
Returns name of the authentication module to show in the UIMap<String,?>
getJAASOptions(Map<String,String> properties)
Options to pass to JAAS login module.Class<? extends LoginModule>
getLoginModuleClass()
String
getName()
-
Methods inherited from class jetbrains.buildServer.serverSide.auth.LoginModuleDescriptorAdapter
getOptions, getTextForLoginPage, validate
-
Methods inherited from class jetbrains.buildServer.serverSide.auth.AuthModuleTypeAdapter
describeProperties, getDefaultProperties, getEditPropertiesJspFilePath, isMultipleInstancesAllowed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.auth.AuthModuleType
describeProperties, getDefaultProperties, getEditPropertiesJspFilePath, isMultipleInstancesAllowed
-
Methods inherited from interface jetbrains.buildServer.serverSide.auth.FirstInPositionAwareLoginModuleDescriptor
getOrderId
-
-
-
-
Field Detail
-
TOKEN_AUTH
public static final String TOKEN_AUTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TokenBasedLoginModuleDescriptor
public TokenBasedLoginModuleDescriptor(@NotNull LoginConfiguration loginConfiguration, @NotNull TokenAuthenticationModel tokenAuthenticationModel)
-
-
Method Detail
-
getLoginModuleClass
public Class<? extends LoginModule> getLoginModuleClass()
- Specified by:
getLoginModuleClass
in interfaceLoginModuleDescriptor
-
getName
@NotNull public String getName()
- Specified by:
getName
in interfaceAuthModuleType
- Returns:
- unique identificator (case-insensitive)
-
getDisplayName
@NotNull public String getDisplayName()
Description copied from interface:AuthModuleType
Returns name of the authentication module to show in the UI- Specified by:
getDisplayName
in interfaceAuthModuleType
- Overrides:
getDisplayName
in classAuthModuleTypeAdapter
- Returns:
- name of the authentication module to show in the UI
-
getDescription
@NotNull public String getDescription()
Description copied from interface:AuthModuleType
Returns description of the authentication module to show in the UI- Specified by:
getDescription
in interfaceAuthModuleType
- Overrides:
getDescription
in classAuthModuleTypeAdapter
- Returns:
- description of the authentication module to show in the UI
-
getJAASOptions
@Nullable public Map<String,?> getJAASOptions(@NotNull Map<String,String> properties)
Description copied from interface:LoginModuleDescriptor
Options to pass to JAAS login module.- Specified by:
getJAASOptions
in interfaceLoginModuleDescriptor
- Overrides:
getJAASOptions
in classLoginModuleDescriptorAdapter
- Parameters:
properties
- authentication module options- Returns:
- Options to pass to JAAS login module
-
getConstraint
@NotNull public PositionConstraint getConstraint()
Description copied from interface:PositionConstraintAware
Constraint to be respected during objects sorting.- Specified by:
getConstraint
in interfacePositionConstraintAware
- Returns:
- position constraint
-
-