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 Constructor Description SimpleJwtAuthenticationStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String id, org.springframework.security.core.Authentication authentication)
org.springframework.security.core.Authentication
get(String id)
org.springframework.security.core.Authentication
getAuthentication(Map<String,Object> claims)
Given JWT claim give the authentication objectJwtAuthenticationStore
getJwtAuthenticationStore(Map<String,Object> claims)
ResolvesJwtAuthenticationStore
for givenAuthentication
instance.JwtAuthenticationStore
getJwtAuthenticationStore(org.springframework.security.core.Authentication authentication)
ResolvesJwtAuthenticationStore
for givenAuthentication
instance.void
store(org.springframework.security.core.Authentication authentication, Map<String,Object> claims)
Store authentication related information in JWT claims-
Methods inherited from class io.jenkins.blueocean.auth.jwt.JwtAuthenticationStoreFactory
all
-
-
-
-
Method Detail
-
add
public void add(String id, org.springframework.security.core.Authentication authentication)
-
get
public org.springframework.security.core.Authentication get(String id)
-
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
public JwtAuthenticationStore getJwtAuthenticationStore(Map<String,Object> claims)
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
-
-