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 into JwtTokenVerifierImpl.JwtAuthentication so that the rest of Jenkins can process this request with proper identity of the caller.
Author:
Vivek Pandey
  • 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

      public static ExtensionList<JwtTokenVerifier> all()