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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.springframework.security.core.Authentication
org.springframework.security.core.Authentication
getAuthentication
(Map<String, Object> claims) Given JWT claim give the authentication objectgetJwtAuthenticationStore
(Map<String, Object> claims) ResolvesJwtAuthenticationStore
for givenAuthentication
instance.getJwtAuthenticationStore
(org.springframework.security.core.Authentication authentication) ResolvesJwtAuthenticationStore
for givenAuthentication
instance.void
Store 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:JwtAuthenticationStore
Given JWT claim give the authentication object- Specified by:
getAuthentication
in 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:JwtAuthenticationStore
Store authentication related information in JWT claims- Specified by:
store
in interfaceJwtAuthenticationStore
claims
- JWT claim
-
getJwtAuthenticationStore
Description copied from class:JwtAuthenticationStoreFactory
ResolvesJwtAuthenticationStore
for givenAuthentication
instance.- Specified by:
getJwtAuthenticationStore
in classJwtAuthenticationStoreFactory
- Parameters:
claims
- JWT claims- Returns:
- JwtAuthenticationStore, can be null
-
getJwtAuthenticationStore
public JwtAuthenticationStore getJwtAuthenticationStore(org.springframework.security.core.Authentication authentication) Description copied from class:JwtAuthenticationStoreFactory
ResolvesJwtAuthenticationStore
for givenAuthentication
instance.- Specified by:
getJwtAuthenticationStore
in classJwtAuthenticationStoreFactory
- Parameters:
authentication
-Authentication
instance- Returns:
- JwtAuthenticationStore, can be null
-