Class HttpSessionPublicKeyCredentialRequestOptionsRepository
java.lang.Object
org.springframework.security.web.webauthn.authentication.HttpSessionPublicKeyCredentialRequestOptionsRepository
- All Implemented Interfaces:
PublicKeyCredentialRequestOptionsRepository
public class HttpSessionPublicKeyCredentialRequestOptionsRepository
extends Object
implements PublicKeyCredentialRequestOptionsRepository
A
PublicKeyCredentialRequestOptionsRepository
that stores the
PublicKeyCredentialRequestOptions
in the
HttpSession
.- Since:
- 6.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionload
(jakarta.servlet.http.HttpServletRequest request) Gets a savedPublicKeyCredentialRequestOptions
if it exists, otherwise null.void
save
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, PublicKeyCredentialRequestOptions options) Saves the providedPublicKeyCredentialRequestOptions
or clears an existingPublicKeyCredentialRequestOptions
ifoptions
is null.void
setAttrName
(String attrName)
-
Constructor Details
-
HttpSessionPublicKeyCredentialRequestOptionsRepository
public HttpSessionPublicKeyCredentialRequestOptionsRepository()
-
-
Method Details
-
save
public void save(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, PublicKeyCredentialRequestOptions options) Description copied from interface:PublicKeyCredentialRequestOptionsRepository
Saves the providedPublicKeyCredentialRequestOptions
or clears an existingPublicKeyCredentialRequestOptions
ifoptions
is null.- Specified by:
save
in interfacePublicKeyCredentialRequestOptionsRepository
- Parameters:
request
- theHttpServletRequest
response
- theHttpServletResponse
options
- thePublicKeyCredentialRequestOptions
to save or null if an existingPublicKeyCredentialRequestOptions
should be removed.
-
load
Description copied from interface:PublicKeyCredentialRequestOptionsRepository
Gets a savedPublicKeyCredentialRequestOptions
if it exists, otherwise null.- Specified by:
load
in interfacePublicKeyCredentialRequestOptionsRepository
- Parameters:
request
- theHttpServletRequest
- Returns:
- the
PublicKeyCredentialRequestOptions
that was saved, otherwise null.
-
setAttrName
-