Class SigningKeyProviderImpl
java.lang.Object
io.jenkins.blueocean.auth.jwt.JwtSigningKeyProvider
io.jenkins.blueocean.auth.jwt.impl.SigningKeyProviderImpl
- All Implemented Interfaces:
ExtensionPoint
Default
JwtSigningKeyProvider
that rotates a key over time.- Author:
- Kohsuke Kawaguchi, Vivek Pandey
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPublicKey
(String kid) Provides public key needed to verify the token.Chooses the key to sign the given token.Methods inherited from class io.jenkins.blueocean.auth.jwt.JwtSigningKeyProvider
all, toPublicKey
-
Field Details
-
DATE_FORMAT
-
-
Constructor Details
-
SigningKeyProviderImpl
public SigningKeyProviderImpl()
-
-
Method Details
-
select
Description copied from class:JwtSigningKeyProvider
Chooses the key to sign the given token.- Specified by:
select
in classJwtSigningKeyProvider
- Parameters:
token
- Token to be signed- Returns:
- null if this provider refuses to sign the given token, in which case the next provider will get the chance.
-
getPublicKey
Description copied from class:JwtSigningKeyProvider
Provides public key needed to verify the token.- Specified by:
getPublicKey
in classJwtSigningKeyProvider
- Parameters:
kid
-SigningKey.kid
returned fromJwtSigningKeyProvider.select(JwtToken)
- Returns:
- null if this provider doesn't recognize the given key ID.
-