public abstract class JwtAuthenticationService extends Object implements UnprotectedRootAction, ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
JwtAuthenticationService() |
| Modifier and Type | Method and Description |
|---|---|
SigningPublicKey |
getJwks(String keyId)
Binds Json web key to the URL space.
|
abstract net.sf.json.JSONObject |
getJwkSet()
Binds Json web keys to the URL space.
|
abstract JwtToken |
getToken(Integer expiryTimeInMins,
Integer maxExpiryTimeInMins)
Gives JWT token for authenticated user.
|
String |
getUrlName() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayName, getIconFileNamepublic String getUrlName()
getUrlName in interface Action@GET @WebMethod(name="token") public abstract JwtToken getToken(@Nullable @QueryParameter(value="expiryTimeInMins") Integer expiryTimeInMins, @Nullable @QueryParameter(value="maxExpiryTimeInMins") Integer maxExpiryTimeInMins)
expiryTimeInMins - token expiry time. Default 30 min.maxExpiryTimeInMins - max token expiry time. Default expiry time is 8 hours (480 mins)@GET public SigningPublicKey getJwks(String keyId)
keyId - keyId of the key@GET @WebMethod(name="jwk-set") public abstract net.sf.json.JSONObject getJwkSet()
Copyright © 2016–2020. All rights reserved.