Class JwtBearerTokenFilter
java.lang.Object
io.jenkins.plugins.jwt.auth.filter.JwtBearerTokenFilter
- All Implemented Interfaces:
ExtensionPoint, HttpServletFilter
The request filter that validate JWT given as Bearer token
-
Nested Class Summary
Nested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse) static booleanverifyJwtSignature(com.nimbusds.jwt.SignedJWT signedJWT, Issuer issuer) Verifies the signature of a signed JWT using JWKS from the specified issuer.
-
Field Details
-
BEARER_PREFIX
- See Also:
-
-
Constructor Details
-
JwtBearerTokenFilter
public JwtBearerTokenFilter()
-
-
Method Details
-
handle
public boolean handle(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse) throws IOException, jakarta.servlet.ServletException - Specified by:
handlein interfaceHttpServletFilter- Throws:
IOExceptionjakarta.servlet.ServletException
-
verifyJwtSignature
Verifies the signature of a signed JWT using JWKS from the specified issuer.
-