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 theRelyingPartyAuthenticationRequestpassed inCreates thePublicKeyCredentialRequestOptionsused to authenticate a user.Creates thePublicKeyCredentialCreationOptionsused to register new credentials.registerCredential(RelyingPartyRegistrationRequest relyingPartyRegistrationRequest)
-
Method Details
-
createPublicKeyCredentialCreationOptions
PublicKeyCredentialCreationOptions createPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsRequest request) Creates thePublicKeyCredentialCreationOptionsused to register new credentials.- Parameters:
request- thePublicKeyCredentialCreationOptionsRequestto create thePublicKeyCredentialCreationOptions- Returns:
- the
PublicKeyCredentialCreationOptionsfor theAuthenticationpassed in. Cannot be null.
-
registerCredential
CredentialRecord registerCredential(RelyingPartyRegistrationRequest relyingPartyRegistrationRequest) - Parameters:
relyingPartyRegistrationRequest- theRelyingPartyRegistrationRequestto process.- Returns:
- a new
CredentialRecord - Throws:
RuntimeException- if theRelyingPartyRegistrationRequestis not valid.
-
createCredentialRequestOptions
PublicKeyCredentialRequestOptions createCredentialRequestOptions(PublicKeyCredentialRequestOptionsRequest request) Creates thePublicKeyCredentialRequestOptionsused to authenticate a user.- Parameters:
request- thePublicKeyCredentialRequestOptionsRequest.- Returns:
- the
PublicKeyCredentialRequestOptionsused to authenticate a user.
-
authenticate
Authenticates theRelyingPartyAuthenticationRequestpassed in- Parameters:
request- theRelyingPartyAuthenticationRequest- Returns:
- the principal name (e.g. username) if authentication was successful
- Throws:
RuntimeException- if authentication fails
-