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
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
-
Method Summary
Modifier and TypeMethodDescriptionall()
abstract JwtAuthenticationStore
getJwtAuthenticationStore
(Map<String, Object> claims) ResolvesJwtAuthenticationStore
for givenAuthentication
instance.abstract JwtAuthenticationStore
getJwtAuthenticationStore
(org.springframework.security.core.Authentication authentication) ResolvesJwtAuthenticationStore
for givenAuthentication
instance.
-
Constructor Details
-
JwtAuthenticationStoreFactory
public JwtAuthenticationStoreFactory()
-
-
Method Details
-
getJwtAuthenticationStore
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
-