Class WebAuthnAuthenticationRequestToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.web.webauthn.authentication.WebAuthnAuthenticationRequestToken
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class WebAuthnAuthenticationRequestToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
An
Authentication used in
WebAuthnAuthenticationProvider for authenticating via WebAuthn.- Since:
- 6.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWebAuthnAuthenticationRequestToken(RelyingPartyAuthenticationRequest webAuthnRequest) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets theRelyingPartyAuthenticationRequestvoidsetAuthenticated(boolean authenticated) Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
-
Constructor Details
-
WebAuthnAuthenticationRequestToken
Creates a new instance.- Parameters:
webAuthnRequest- theRelyingPartyAuthenticationRequestto use for authentication. Cannot be null.
-
-
Method Details
-
getWebAuthnRequest
Gets theRelyingPartyAuthenticationRequest- Returns:
- the
RelyingPartyAuthenticationRequest
-
setAuthenticated
public void setAuthenticated(boolean authenticated) - Specified by:
setAuthenticatedin interfaceorg.springframework.security.core.Authentication- Overrides:
setAuthenticatedin classorg.springframework.security.authentication.AbstractAuthenticationToken
-
getCredentials
-
getPrincipal
-