Class BasicHttpAuthenticationScheme
- java.lang.Object
-
- jetbrains.buildServer.serverSide.auth.AuthModuleTypeAdapter
-
- jetbrains.buildServer.controllers.interceptors.auth.HttpAuthenticationSchemeAdapter
-
- jetbrains.buildServer.controllers.interceptors.auth.ProtocolBasedHttpAuthenticationSchemeAdapter
-
- jetbrains.buildServer.controllers.interceptors.auth.impl.AuthorizationHeaderBasedHttpAuthenticationScheme<SimpleCredentials>
-
- jetbrains.buildServer.controllers.interceptors.auth.impl.BasicProtocolBasedHttpAuthenticationScheme
-
- jetbrains.buildServer.controllers.interceptors.auth.impl.BasicHttpAuthenticationScheme
-
- All Implemented Interfaces:
HttpAuthenticationProtocolsProvider
,HttpAuthenticationScheme
,PathMatcher
,ProtocolBasedHttpAuthenticationScheme
,AuthModuleType
public class BasicHttpAuthenticationScheme extends BasicProtocolBasedHttpAuthenticationScheme
- Author:
- Maxim.Manuylov Date: 4/11/12
-
-
Constructor Summary
Constructors Constructor Description BasicHttpAuthenticationScheme(LoginConfiguration loginConfiguration, ServerLoginModel serverLoginModel, PathModifiers pathModifiers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpAuthenticationResult
checkCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SimpleCredentials credentials, Map<String,String> properties)
protected String
doGetName()
String
getDescription()
Returns description of the authentication module to show in the UIString
getDisplayName()
Returns name of the authentication module to show in the UIprotected boolean
isForcible()
boolean
shouldSkip2FA(javax.servlet.http.HttpServletRequest request, Map<String,String> properties)
Returns whether two-factor authentication should be skipped when this scheme is used.-
Methods inherited from class jetbrains.buildServer.controllers.interceptors.auth.impl.BasicProtocolBasedHttpAuthenticationScheme
afterProcess, extractCredentials, getProtocolName, isProtocolSupported, matchesPath
-
Methods inherited from class jetbrains.buildServer.controllers.interceptors.auth.impl.AuthorizationHeaderBasedHttpAuthenticationScheme
getAllowedProtocols, getForcedProtocols, processAuthenticationRequest
-
Methods inherited from class jetbrains.buildServer.controllers.interceptors.auth.HttpAuthenticationSchemeAdapter
getName, 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, getName, isMultipleInstancesAllowed, validate
-
-
-
-
Constructor Detail
-
BasicHttpAuthenticationScheme
public BasicHttpAuthenticationScheme(@NotNull LoginConfiguration loginConfiguration, @NotNull ServerLoginModel serverLoginModel, @NotNull PathModifiers pathModifiers)
-
-
Method Detail
-
doGetName
@NotNull protected String doGetName()
- Specified by:
doGetName
in classHttpAuthenticationSchemeAdapter
-
checkCredentials
@NotNull protected HttpAuthenticationResult checkCredentials(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response, @NotNull SimpleCredentials credentials, @NotNull Map<String,String> properties) throws IOException
- Specified by:
checkCredentials
in classAuthorizationHeaderBasedHttpAuthenticationScheme<SimpleCredentials>
- Throws:
IOException
-
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
-
isForcible
protected boolean isForcible()
- Specified by:
isForcible
in classAuthorizationHeaderBasedHttpAuthenticationScheme<SimpleCredentials>
-
shouldSkip2FA
public boolean shouldSkip2FA(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull Map<String,String> properties)
Description copied from interface:HttpAuthenticationScheme
Returns whether two-factor authentication should be skipped when this scheme is used.- Parameters:
request
- requestproperties
- properties from config file- Returns:
- true if two-factor authentication should be skipped, false otherwise
-
-