Class WebAuthnAuthenticationProvider
java.lang.Object
org.springframework.security.web.webauthn.authentication.WebAuthnAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class WebAuthnAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
An
AuthenticationProvider that uses WebAuthnRelyingPartyOperations for
authentication using an WebAuthnAuthenticationRequestToken. First
WebAuthnRelyingPartyOperations.authenticate(RelyingPartyAuthenticationRequest)
is invoked. The result is a username passed into UserDetailsService. The
UserDetails is used to create an Authentication.- Since:
- 6.4
-
Constructor Summary
ConstructorsConstructorDescriptionWebAuthnAuthenticationProvider(WebAuthnRelyingPartyOperations relyingPartyOperations, org.springframework.security.core.userdetails.UserDetailsService userDetailsService) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) boolean
-
Constructor Details
-
WebAuthnAuthenticationProvider
public WebAuthnAuthenticationProvider(WebAuthnRelyingPartyOperations relyingPartyOperations, org.springframework.security.core.userdetails.UserDetailsService userDetailsService) Creates a new instance.- Parameters:
relyingPartyOperations- theWebAuthnRelyingPartyOperationsto use. Cannot be null.userDetailsService- theUserDetailsServiceto use. Cannot be null.
-
-
Method Details
-
authenticate
public 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
-