Class ApiKeyAuthenticationProvider<T extends ApiKeyEntity>
java.lang.Object
org.springaicommunity.mcp.security.server.apikey.authentication.ApiKeyAuthenticationProvider<T>
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class ApiKeyAuthenticationProvider<T extends ApiKeyEntity>
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
- Author:
- Daniel Garnier-Moiroux
-
Constructor Summary
ConstructorsConstructorDescriptionApiKeyAuthenticationProvider(ApiKeyEntityRepository<T> apiKeyEntityRepository) -
Method Summary
Modifier and TypeMethodDescription@Nullable org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) voidsetPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) boolean
-
Constructor Details
-
ApiKeyAuthenticationProvider
-
-
Method Details
-
authenticate
public @Nullable org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
setPasswordEncoder
public void setPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
-