Package io.jenkins.plugins.csp
Class ContentSecurityPolicyRootAction
- java.lang.Object
-
- hudson.model.InvisibleAction
-
- io.jenkins.plugins.csp.ContentSecurityPolicyRootAction
-
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
,RootAction
,UnprotectedRootAction
@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Symbol("contentSecurityPolicyRootAction") public class ContentSecurityPolicyRootAction extends InvisibleAction implements UnprotectedRootAction
Reporting endpoint for CSP violations.StaplerRequest.getRestOfPath()
is used to associate violations with the view they occur in;ContentSecurityPolicyDecorator
needs to have a dynamic report URL for that.While this is an
UnprotectedRootAction
, only submissions with correct HMAC fromContext.encodeContext(Object, hudson.model.User, String)
will be accepted.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContentSecurityPolicyRootAction.CrumbExclusionImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ContentSecurityPolicyRootAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kohsuke.stapler.HttpResponse
doDynamic(org.kohsuke.stapler.StaplerRequest req)
String
getUrlName()
-
Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName
-
-
-
-
Field Detail
-
URL
public static final String URL
- See Also:
- Constant Field Values
-
LOGGER
public static final Logger LOGGER
-
-
Method Detail
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
- Overrides:
getUrlName
in classInvisibleAction
-
doDynamic
@POST public org.kohsuke.stapler.HttpResponse doDynamic(org.kohsuke.stapler.StaplerRequest req)
-
-