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 HttpAuthenticationResultcheckCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SimpleCredentials credentials, Map<String,String> properties)protected StringdoGetName()StringgetDescription()Returns description of the authentication module to show in the UIStringgetDisplayName()Returns name of the authentication module to show in the UIprotected booleanisForcible()booleanshouldSkip2FA(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:
doGetNamein 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:
checkCredentialsin classAuthorizationHeaderBasedHttpAuthenticationScheme<SimpleCredentials>- Throws:
IOException
-
getDisplayName
@NotNull public String getDisplayName()
Description copied from interface:AuthModuleTypeReturns name of the authentication module to show in the UI- Specified by:
getDisplayNamein interfaceAuthModuleType- Overrides:
getDisplayNamein classAuthModuleTypeAdapter- Returns:
- name of the authentication module to show in the UI
-
getDescription
@NotNull public String getDescription()
Description copied from interface:AuthModuleTypeReturns description of the authentication module to show in the UI- Specified by:
getDescriptionin interfaceAuthModuleType- Overrides:
getDescriptionin classAuthModuleTypeAdapter- Returns:
- description of the authentication module to show in the UI
-
isForcible
protected boolean isForcible()
- Specified by:
isForciblein classAuthorizationHeaderBasedHttpAuthenticationScheme<SimpleCredentials>
-
shouldSkip2FA
public boolean shouldSkip2FA(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull Map<String,String> properties)Description copied from interface:HttpAuthenticationSchemeReturns 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
-
-