Class HttpSessionPublicKeyCredentialCreationOptionsRepository
java.lang.Object
org.springframework.security.web.webauthn.registration.HttpSessionPublicKeyCredentialCreationOptionsRepository
- All Implemented Interfaces:
PublicKeyCredentialCreationOptionsRepository
public class HttpSessionPublicKeyCredentialCreationOptionsRepository
extends Object
implements PublicKeyCredentialCreationOptionsRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionload
(jakarta.servlet.http.HttpServletRequest request) Gets a savedPublicKeyCredentialCreationOptions
if it exists, otherwise null.void
save
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, PublicKeyCredentialCreationOptions options) Saves the providedPublicKeyCredentialCreationOptions
or clears an existingPublicKeyCredentialCreationOptions
ifoptions
is null.void
setAttrName
(String attrName)
-
Constructor Details
-
HttpSessionPublicKeyCredentialCreationOptionsRepository
public HttpSessionPublicKeyCredentialCreationOptionsRepository()
-
-
Method Details
-
save
public void save(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, PublicKeyCredentialCreationOptions options) Description copied from interface:PublicKeyCredentialCreationOptionsRepository
Saves the providedPublicKeyCredentialCreationOptions
or clears an existingPublicKeyCredentialCreationOptions
ifoptions
is null.- Specified by:
save
in interfacePublicKeyCredentialCreationOptionsRepository
- Parameters:
request
- theHttpServletRequest
response
- theHttpServletResponse
options
- thePublicKeyCredentialCreationOptions
to save or null if an existingPublicKeyCredentialCreationOptions
should be removed.
-
load
Description copied from interface:PublicKeyCredentialCreationOptionsRepository
Gets a savedPublicKeyCredentialCreationOptions
if it exists, otherwise null.- Specified by:
load
in interfacePublicKeyCredentialCreationOptionsRepository
- Parameters:
request
- theHttpServletRequest
- Returns:
- the
PublicKeyCredentialCreationOptions
that was saved, otherwise null.
-
setAttrName
-