Package io.jenkins.blueocean.auth.jwt
Class JwtAuthenticationStoreFactory
- java.lang.Object
-
- io.jenkins.blueocean.auth.jwt.JwtAuthenticationStoreFactory
-
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
SimpleJwtAuthenticationStore
public abstract class JwtAuthenticationStoreFactory extends Object implements ExtensionPoint
An authentication provider implements this extension point to store enough information in JWT claim so that later on when the token verification happens, using this same claims this authentication object can be re-created.- Author:
- Vivek Pandey
- See Also:
Authentication
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description JwtAuthenticationStoreFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<JwtAuthenticationStoreFactory>
all()
abstract JwtAuthenticationStore
getJwtAuthenticationStore(Map<String,Object> claims)
ResolvesJwtAuthenticationStore
for givenAuthentication
instance.abstract JwtAuthenticationStore
getJwtAuthenticationStore(org.springframework.security.core.Authentication authentication)
ResolvesJwtAuthenticationStore
for givenAuthentication
instance.
-
-
-
Method Detail
-
getJwtAuthenticationStore
public abstract JwtAuthenticationStore getJwtAuthenticationStore(Map<String,Object> claims)
ResolvesJwtAuthenticationStore
for givenAuthentication
instance.- Parameters:
claims
- JWT claims- Returns:
- JwtAuthenticationStore, can be null
-
getJwtAuthenticationStore
public abstract JwtAuthenticationStore getJwtAuthenticationStore(org.springframework.security.core.Authentication authentication)
ResolvesJwtAuthenticationStore
for givenAuthentication
instance.- Parameters:
authentication
-Authentication
instance- Returns:
- JwtAuthenticationStore, can be null
-
all
public static ExtensionList<JwtAuthenticationStoreFactory> all()
-
-