public abstract class JwtGenerator
extends org.apache.tools.ant.ExtensionPoint
ExtensionPoint
that allows for JWT generation. Many JwtGenerator
s can be
defined to run in Jenkins. The JwtGenerator
with the largest ordinal will be used by Jenkins to generate
a JWT for the userModifier and Type | Class and Description |
---|---|
static class |
JwtGenerator.OAuthAccessTokenResponse |
Constructor and Description |
---|
JwtGenerator() |
Modifier and Type | Method and Description |
---|---|
static hudson.ExtensionList<JwtGenerator> |
all()
Gets all
JwtGenerator s |
abstract JwtGenerator.OAuthAccessTokenResponse |
getToken(org.acegisecurity.Authentication authentication,
Integer expiryTimeInMins,
Integer maxExpiryTimeInMins)
Get a token for the given user.
|
addDependency, dependsOn, execute, getDependencies, getDescription, getIf, getLocation, getName, getProject, getTasks, getUnless, parseDepends, performTasks, setDepends, setDescription, setIf, setLocation, setName, setProject, setUnless, toString
public abstract JwtGenerator.OAuthAccessTokenResponse getToken(org.acegisecurity.Authentication authentication, @Nullable Integer expiryTimeInMins, @Nullable Integer maxExpiryTimeInMins)
authentication
- the Authentication
(user) to generate a token forexpiryTimeInMins
- the requested expiry time in MinsmaxExpiryTimeInMins
- the maximum expiry time in minspublic static hudson.ExtensionList<JwtGenerator> all()
JwtGenerator
sCopyright © 2016–2018. All rights reserved.