Interface HttpAuthenticationProtocolsProvider
-
- All Known Subinterfaces:
ProtocolBasedHttpAuthenticationScheme
- All Known Implementing Classes:
ProtocolBasedHttpAuthenticationSchemeAdapter
@UserImplemented public interface HttpAuthenticationProtocolsProvider
Provides supported protocols for the case when TeamCity is going to answer "401 Unauthorized" on some HTTP request.- Since:
- 8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<HttpAuthenticationProtocol>
getAllowedProtocols(javax.servlet.http.HttpServletRequest request, java.util.Map<java.lang.String,java.lang.String> properties)
Returns all authentication protocols those are supported for the specified HTTP request.java.util.Set<HttpAuthenticationProtocol>
getForcedProtocols(javax.servlet.http.HttpServletRequest request, java.util.Map<java.lang.String,java.lang.String> properties)
Returns protocols which are used to force authentication when user is not authenticated.
-
-
-
Method Detail
-
getAllowedProtocols
@NotNull java.util.Set<HttpAuthenticationProtocol> getAllowedProtocols(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull java.util.Map<java.lang.String,java.lang.String> properties)
Returns all authentication protocols those are supported for the specified HTTP request.- Parameters:
request
- requestproperties
- properties from config file- Returns:
- allowed protocols
-
getForcedProtocols
@NotNull java.util.Set<HttpAuthenticationProtocol> getForcedProtocols(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull java.util.Map<java.lang.String,java.lang.String> properties)
Returns protocols which are used to force authentication when user is not authenticated.- Parameters:
request
- requestproperties
- properties from config file- Returns:
- forced protocols
-
-