public abstract class JwtTokenVerifier extends Object implements hudson.ExtensionPoint
JwtTokenVerifierImpl.JwtAuthentication
so that the rest of Jenkins can process this request
with proper identity of the caller.Constructor and Description |
---|
JwtTokenVerifier() |
Modifier and Type | Method and Description |
---|---|
static hudson.ExtensionList<JwtTokenVerifier> |
all() |
abstract Optional<org.acegisecurity.Authentication> |
getAuthenticationFromToken(String jwt) |
public abstract Optional<org.acegisecurity.Authentication> getAuthenticationFromToken(String jwt) throws ServiceException
jwt
- Incoming JWT that we are trying to processAuthentication
object for the user, or Optional.empty() if no user could be found or the JWT
could not be verified. Optional.empty() should also be thrown if this JWT could not be verified (as it may
be verified by a subsequent verifier)ServiceException
- If the request should be explicitly denied for whatever reason. Throwing this exception will prevent
all subsequent filters in the chain from executing and deny the web request, so only use this if you are
certain that the JWT is not valid.public static hudson.ExtensionList<JwtTokenVerifier> all()
Copyright © 2016–2018. All rights reserved.