Class StrictCrumbIssuer
- java.lang.Object
-
- hudson.security.csrf.CrumbIssuer
-
- org.jenkinsci.plugins.strictcrumbissuer.StrictCrumbIssuer
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<CrumbIssuer>
public class StrictCrumbIssuer extends CrumbIssuer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StrictCrumbIssuer.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.security.csrf.CrumbIssuer
CrumbIssuer.RestrictedApi
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.security.csrf.CrumbIssuer
DEFAULT_CRUMB_NAME
-
-
Constructor Summary
Constructors Constructor Description StrictCrumbIssuer()
StrictCrumbIssuer(boolean checkClientIP, boolean checkSameSource, boolean checkOnlyLocalPath, boolean checkSessionMatch, int hoursValid, boolean xorMasking)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getHoursValid()
boolean
isCheckClientIP()
boolean
isCheckingClientIP()
Deprecated.name was changed for JCasC, please use isCheckClientIP insteadboolean
isCheckingOnlyLocalPath()
Deprecated.name was changed for JCasC, please use isCheckOnlyLocalPath insteadboolean
isCheckingSameSource()
Deprecated.name was changed for JCasC, please use isCheckSameSource insteadboolean
isCheckingSessionMatch()
Deprecated.name was changed for JCasC, please use isCheckSessionMatch insteadboolean
isCheckOnlyLocalPath()
boolean
isCheckSameSource()
boolean
isCheckSessionMatch()
protected String
issueCrumb(javax.servlet.ServletRequest request, String salt)
boolean
isXorMasking()
void
setCheckClientIP(boolean checkClientIP)
void
setCheckOnlyLocalPath(boolean checkOnlyLocalPath)
void
setCheckSameSource(boolean checkSameSource)
void
setCheckSessionMatch(boolean checkSessionMatch)
void
setHoursValid(int hoursValid)
void
setup()
void
setXorMasking(boolean xorMasking)
boolean
validateCrumb(javax.servlet.ServletRequest request, String salt, String encodedCrumb)
-
Methods inherited from class hudson.security.csrf.CrumbIssuer
all, getApi, getCrumb, getCrumb, getCrumbRequestField, getDescriptor, initStaplerCrumbIssuer, validateCrumb, validateCrumb
-
-
-
-
Method Detail
-
setCheckClientIP
@DataBoundSetter public void setCheckClientIP(boolean checkClientIP)
-
setCheckSameSource
@DataBoundSetter public void setCheckSameSource(boolean checkSameSource)
-
setCheckOnlyLocalPath
@DataBoundSetter public void setCheckOnlyLocalPath(boolean checkOnlyLocalPath)
-
setCheckSessionMatch
@DataBoundSetter public void setCheckSessionMatch(boolean checkSessionMatch)
-
setHoursValid
@DataBoundSetter public void setHoursValid(int hoursValid)
-
setXorMasking
@DataBoundSetter public void setXorMasking(boolean xorMasking)
-
setup
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @PostConstruct public void setup()
-
isCheckingClientIP
@Deprecated @RestrictedSince("2.1.0") @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isCheckingClientIP()
Deprecated.name was changed for JCasC, please use isCheckClientIP instead
-
isCheckingSameSource
@Deprecated @RestrictedSince("2.1.0") @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isCheckingSameSource()
Deprecated.name was changed for JCasC, please use isCheckSameSource instead
-
isCheckingOnlyLocalPath
@Deprecated @RestrictedSince("2.1.0") @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isCheckingOnlyLocalPath()
Deprecated.name was changed for JCasC, please use isCheckOnlyLocalPath instead
-
isCheckingSessionMatch
@Deprecated @RestrictedSince("2.1.0") @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isCheckingSessionMatch()
Deprecated.name was changed for JCasC, please use isCheckSessionMatch instead
-
isCheckClientIP
public boolean isCheckClientIP()
-
isCheckSameSource
public boolean isCheckSameSource()
-
isCheckOnlyLocalPath
public boolean isCheckOnlyLocalPath()
-
isCheckSessionMatch
public boolean isCheckSessionMatch()
-
getHoursValid
public int getHoursValid()
-
isXorMasking
public boolean isXorMasking()
-
issueCrumb
@CheckForNull protected String issueCrumb(@NonNull javax.servlet.ServletRequest request, @NonNull String salt)
- Specified by:
issueCrumb
in classCrumbIssuer
-
validateCrumb
public boolean validateCrumb(@NonNull javax.servlet.ServletRequest request, @NonNull String salt, @CheckForNull String encodedCrumb)
- Specified by:
validateCrumb
in classCrumbIssuer
-
-