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
public abstract class JwtTokenVerifier extends Object implements ExtensionPoint
If an incoming HTTP request contains JWT token, pick that up, verifies the integrity, then convert that intoJwtTokenVerifierImpl.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
Constructors Constructor Description JwtTokenVerifier()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<JwtTokenVerifier>
all()
abstract org.springframework.security.core.Authentication
verify(javax.servlet.http.HttpServletRequest request)
-
-
-
Method Detail
-
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
public static ExtensionList<JwtTokenVerifier> all()
-
-