Class SimpleJwtAuthenticationStore
java.lang.Object
io.jenkins.blueocean.auth.jwt.JwtAuthenticationStoreFactory
io.jenkins.blueocean.auth.jwt.impl.SimpleJwtAuthenticationStore
- All Implemented Interfaces:
ExtensionPoint,JwtAuthenticationStore
@Extension(ordinal=0.0)
public class SimpleJwtAuthenticationStore
extends JwtAuthenticationStoreFactory
implements JwtAuthenticationStore
Stores authentication map and makes them available in memory.
- Author:
- Vivek Pandey
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.springframework.security.core.Authenticationorg.springframework.security.core.AuthenticationgetAuthentication(Map<String, Object> claims) Given JWT claim give the authentication objectgetJwtAuthenticationStore(Map<String, Object> claims) ResolvesJwtAuthenticationStorefor givenAuthenticationinstance.getJwtAuthenticationStore(org.springframework.security.core.Authentication authentication) ResolvesJwtAuthenticationStorefor givenAuthenticationinstance.voidStore authentication related information in JWT claimsMethods inherited from class io.jenkins.blueocean.auth.jwt.JwtAuthenticationStoreFactory
all
-
Constructor Details
-
SimpleJwtAuthenticationStore
public SimpleJwtAuthenticationStore()
-
-
Method Details
-
add
-
get
-
getAuthentication
public org.springframework.security.core.Authentication getAuthentication(Map<String, Object> claims) Description copied from interface:JwtAuthenticationStoreGiven JWT claim give the authentication object- Specified by:
getAuthenticationin interfaceJwtAuthenticationStore- Parameters:
claims- JWT claim- Returns:
- Authentication object, always non-null
-
store
public void store(org.springframework.security.core.Authentication authentication, Map<String, Object> claims) Description copied from interface:JwtAuthenticationStoreStore authentication related information in JWT claims- Specified by:
storein interfaceJwtAuthenticationStore- Parameters:
claims- JWT claim
-
getJwtAuthenticationStore
Description copied from class:JwtAuthenticationStoreFactoryResolvesJwtAuthenticationStorefor givenAuthenticationinstance.- Specified by:
getJwtAuthenticationStorein classJwtAuthenticationStoreFactory- Parameters:
claims- JWT claims- Returns:
- JwtAuthenticationStore, can be null
-
getJwtAuthenticationStore
public JwtAuthenticationStore getJwtAuthenticationStore(org.springframework.security.core.Authentication authentication) Description copied from class:JwtAuthenticationStoreFactoryResolvesJwtAuthenticationStorefor givenAuthenticationinstance.- Specified by:
getJwtAuthenticationStorein classJwtAuthenticationStoreFactory- Parameters:
authentication-Authenticationinstance- Returns:
- JwtAuthenticationStore, can be null
-