public abstract class JwtSigningKeyProvider extends Object implements hudson.ExtensionPoint
JwtTokenVerifier| Constructor and Description |
|---|
JwtSigningKeyProvider() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.ExtensionList<JwtSigningKeyProvider> |
all() |
abstract SigningPublicKey |
getPublicKey(String keyId)
Provides public key needed to verify the token.
|
abstract SigningKey |
select(JwtToken token)
Chooses the key to sign the given token.
|
static SigningPublicKey |
toPublicKey(String keyId)
Search through all the providers and find the public key that matches the given key ID.
|
@CheckForNull public abstract SigningKey select(JwtToken token)
token - Token to be signed@CheckForNull public abstract SigningPublicKey getPublicKey(String keyId)
keyId - SigningKey.kid returned from select(JwtToken)public static hudson.ExtensionList<JwtSigningKeyProvider> all()
@CheckForNull public static SigningPublicKey toPublicKey(String keyId)
Copyright © 2016–2017. All rights reserved.