Class KeycloakAuthenticationProvider
- java.lang.Object
-
- org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class KeycloakAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
Performs authentication on aKeycloakAuthenticationToken
.- Version:
- $Revision: 1 $
- Author:
- Scott Rossillo
-
-
Constructor Summary
Constructors Constructor Description KeycloakAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authentication
authenticate(org.springframework.security.core.Authentication authentication)
void
setGrantedAuthoritiesMapper(org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper grantedAuthoritiesMapper)
boolean
supports(Class<?> aClass)
-
-
-
Method Detail
-
setGrantedAuthoritiesMapper
public void setGrantedAuthoritiesMapper(org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper grantedAuthoritiesMapper)
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
- Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
supports
public boolean supports(Class<?> aClass)
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-