org.jvnet.hudson.test
Class TestCrumbIssuer
java.lang.Object
hudson.security.csrf.CrumbIssuer
org.jvnet.hudson.test.TestCrumbIssuer
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.security.csrf.CrumbIssuer>
public class TestCrumbIssuer
- extends hudson.security.csrf.CrumbIssuer
A crumb issuer that issues a constant crumb value. Used for unit testing.
- Author:
- dty
| Nested classes/interfaces inherited from class hudson.security.csrf.CrumbIssuer |
hudson.security.csrf.CrumbIssuer.RestrictedApi |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Methods inherited from class hudson.security.csrf.CrumbIssuer |
all, getApi, getCrumb, getCrumb, getCrumbRequestField, getDescriptor, initStaplerCrumbIssuer, validateCrumb, validateCrumb |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestCrumbIssuer
public TestCrumbIssuer()
issueCrumb
protected String issueCrumb(javax.servlet.ServletRequest request,
String salt)
- Specified by:
issueCrumb in class hudson.security.csrf.CrumbIssuer
validateCrumb
public boolean validateCrumb(javax.servlet.ServletRequest request,
String salt,
String crumb)
- Specified by:
validateCrumb in class hudson.security.csrf.CrumbIssuer
Copyright © 2004-2014. All Rights Reserved.