Interface WebAuthnRelyingPartyOperations
- All Known Implementing Classes:
Webauthn4JRelyingPartyOperations
public interface WebAuthnRelyingPartyOperations
An API for WebAuthn
Relying Party Operations
- Since:
- 6.4
-
Method Summary
Modifier and TypeMethodDescriptionAuthenticates theRelyingPartyAuthenticationRequest
passed inCreates thePublicKeyCredentialRequestOptions
used to authenticate a user.Creates thePublicKeyCredentialCreationOptions
used to register new credentials.registerCredential
(RelyingPartyRegistrationRequest relyingPartyRegistrationRequest)
-
Method Details
-
createPublicKeyCredentialCreationOptions
PublicKeyCredentialCreationOptions createPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsRequest request) Creates thePublicKeyCredentialCreationOptions
used to register new credentials.- Parameters:
request
- thePublicKeyCredentialCreationOptionsRequest
to create thePublicKeyCredentialCreationOptions
- Returns:
- the
PublicKeyCredentialCreationOptions
for theAuthentication
passed in. Cannot be null.
-
registerCredential
CredentialRecord registerCredential(RelyingPartyRegistrationRequest relyingPartyRegistrationRequest) - Parameters:
relyingPartyRegistrationRequest
- theRelyingPartyRegistrationRequest
to process.- Returns:
- a new
CredentialRecord
- Throws:
RuntimeException
- if theRelyingPartyRegistrationRequest
is not valid.
-
createCredentialRequestOptions
PublicKeyCredentialRequestOptions createCredentialRequestOptions(PublicKeyCredentialRequestOptionsRequest request) Creates thePublicKeyCredentialRequestOptions
used to authenticate a user.- Parameters:
request
- thePublicKeyCredentialRequestOptionsRequest
.- Returns:
- the
PublicKeyCredentialRequestOptions
used to authenticate a user.
-
authenticate
Authenticates theRelyingPartyAuthenticationRequest
passed in- Parameters:
request
- theRelyingPartyAuthenticationRequest
- Returns:
- the principal name (e.g. username) if authentication was successful
- Throws:
RuntimeException
- if authentication fails
-