Class DomainIsolationProtectionImpl
- java.lang.Object
-
- jetbrains.buildServer.web.security.impl.DomainIsolationProtectionImpl
-
- All Implemented Interfaces:
ReportTabsIsolationProtection
,DomainIsolationProtection
public class DomainIsolationProtectionImpl extends Object implements DomainIsolationProtection
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.web.security.DomainIsolationProtection
ARTIFACTS_URL_PROPERTY, FEATURE_TOGGLE
-
-
Constructor Summary
Constructors Constructor Description DomainIsolationProtectionImpl(ServerSettings serverSettings, ExtensionHolder extensionHolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkRequestBlacklisted(javax.servlet.http.HttpServletRequest request)
void
fillModel(Map<String,Object> model)
Fill jsp model with values required for domain isolation protectionString
getArtifactsUrl()
boolean
isArtifactsEmbeddingAllowed()
Whether or not the report tab should be disabledboolean
isArtifactsOrigin(javax.servlet.http.HttpServletRequest request)
boolean
isAuthenticationForbidden()
boolean
isEnabled()
boolean
isRequestBlacklisted(javax.servlet.http.HttpServletRequest request)
boolean
isShowWarning()
-
-
-
Constructor Detail
-
DomainIsolationProtectionImpl
public DomainIsolationProtectionImpl(@NotNull ServerSettings serverSettings, @NotNull ExtensionHolder extensionHolder)
-
-
Method Detail
-
getArtifactsUrl
@Nullable public String getArtifactsUrl()
- Specified by:
getArtifactsUrl
in interfaceDomainIsolationProtection
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceDomainIsolationProtection
-
isArtifactsEmbeddingAllowed
public boolean isArtifactsEmbeddingAllowed()
Description copied from interface:ReportTabsIsolationProtection
Whether or not the report tab should be disabled- Specified by:
isArtifactsEmbeddingAllowed
in interfaceReportTabsIsolationProtection
- Returns:
- true if tabs should be enabled
-
fillModel
public void fillModel(@NotNull Map<String,Object> model)
Description copied from interface:ReportTabsIsolationProtection
Fill jsp model with values required for domain isolation protection- Specified by:
fillModel
in interfaceReportTabsIsolationProtection
-
isShowWarning
public boolean isShowWarning()
- Specified by:
isShowWarning
in interfaceDomainIsolationProtection
-
isAuthenticationForbidden
public boolean isAuthenticationForbidden()
- Specified by:
isAuthenticationForbidden
in interfaceDomainIsolationProtection
-
checkRequestBlacklisted
public void checkRequestBlacklisted(@NotNull javax.servlet.http.HttpServletRequest request)
- Specified by:
checkRequestBlacklisted
in interfaceDomainIsolationProtection
-
isRequestBlacklisted
public boolean isRequestBlacklisted(@NotNull javax.servlet.http.HttpServletRequest request)
- Specified by:
isRequestBlacklisted
in interfaceDomainIsolationProtection
-
isArtifactsOrigin
public boolean isArtifactsOrigin(@NotNull javax.servlet.http.HttpServletRequest request)
- Specified by:
isArtifactsOrigin
in interfaceDomainIsolationProtection
-
-