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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()abstract JwtAuthenticationStoregetJwtAuthenticationStore(Map<String, Object> claims) ResolvesJwtAuthenticationStorefor givenAuthenticationinstance.abstract JwtAuthenticationStoregetJwtAuthenticationStore(org.springframework.security.core.Authentication authentication) ResolvesJwtAuthenticationStorefor givenAuthenticationinstance.
-
Constructor Details
-
JwtAuthenticationStoreFactory
public JwtAuthenticationStoreFactory()
-
-
Method Details
-
getJwtAuthenticationStore
ResolvesJwtAuthenticationStorefor givenAuthenticationinstance.- Parameters:
claims- JWT claims- Returns:
- JwtAuthenticationStore, can be null
-
getJwtAuthenticationStore
public abstract JwtAuthenticationStore getJwtAuthenticationStore(org.springframework.security.core.Authentication authentication) ResolvesJwtAuthenticationStorefor givenAuthenticationinstance.- Parameters:
authentication-Authenticationinstance- Returns:
- JwtAuthenticationStore, can be null
-
all
-