Class JwtBearerTokenFilterConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.jwt.auth.filter.JwtBearerTokenFilterConfiguration
- All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster
@Extension
@Symbol("jwtBearer")
public class JwtBearerTokenFilterConfiguration
extends GlobalConfiguration
Global configuration for JWT Bearer Token authentication plugin.
-
Nested Class Summary
Nested classes/interfaces inherited from class Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn if the request URI match any of the protected path patterns from any issuerbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) doTestPath(String protectedPaths, String testPath) getMatchingIssuer(String requestURI) Returns the first issuer that matches the request URI path patterns.voidsetIssuers(List<Issuer> issuers) Methods inherited from class GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
JwtBearerTokenFilterConfiguration
@DataBoundConstructor public JwtBearerTokenFilterConfiguration()
-
-
Method Details
-
getInstance
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<GlobalConfiguration>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classGlobalConfiguration- Throws:
Descriptor.FormException
-
getIssuers
-
setIssuers
-
getCategory
- Overrides:
getCategoryin classDescriptor<GlobalConfiguration>
-
getMatchingIssuer
-
anyMatch
Return if the request URI match any of the protected path patterns from any issuer- Parameters:
requestURI- The request URI- Returns:
- True if the URI matches any protected path pattern, false otherwise
-
doTestPath
@POST public FormValidation doTestPath(@QueryParameter String protectedPaths, @QueryParameter String testPath)
-