Package io.jenkins.blueocean.auth.jwt
Class JwtTokenVerifier
java.lang.Object
io.jenkins.blueocean.auth.jwt.JwtTokenVerifier
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
JwtTokenVerifierImpl
If an incoming HTTP request contains JWT token, pick that up, verifies the integrity, then
convert that into
JwtTokenVerifierImpl.JwtAuthentication
so that the rest of Jenkins can process this request
with proper identity of the caller.- Author:
- Vivek Pandey
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<JwtTokenVerifier>
all()
abstract org.springframework.security.core.Authentication
verify
(javax.servlet.http.HttpServletRequest request)
-
Constructor Details
-
JwtTokenVerifier
public JwtTokenVerifier()
-
-
Method Details
-
verify
public abstract org.springframework.security.core.Authentication verify(javax.servlet.http.HttpServletRequest request) - Parameters:
request
- Incoming HTTP request that may (or may not) contains JWT token that we are trying to process- Returns:
- null if the request doesn't contain JWT token, in which case the HTTP request will proceed normally (for example the HTTP session might establish the identity of the user.)
-
all
-