Class WebAuthnAuthentication
java.lang.Object
com.revetsec.webauthn.WebAuthnAuthentication
Engine-created proof of a committed, stored-key WebAuthn authentication. The application
still decides whether to create a session or authorize a sensitive action.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe two authentication ceremonies. -
Method Summary
Modifier and TypeMethodDescriptionReturns the action bound to an account-pinned reauthentication, when present.byte @NonNull []Returns the verified credential ID.Returns the configured namespace.getKind()Returns whether this proof satisfied discoverable sign-in or account-pinned reauthentication.Returns the configured RP ID.byte @NonNull []Returns the authoritative account handle.Returns the backup state stored by this successful authentication.Returns the credential's permanent backup eligibility.toString()Redacts the account, credential and action.
-
Method Details
-
getCredentialNamespace
Returns the configured namespace.- Returns:
- namespace
- Since:
- 1.0.0
-
getRelyingPartyId
Returns the configured RP ID.- Returns:
- relying-party ID
- Since:
- 1.0.0
-
getUserHandle
Returns the authoritative account handle.- Returns:
- defensive handle copy
- Since:
- 1.0.0
-
getCredentialId
Returns the verified credential ID.- Returns:
- defensive ID copy
- Since:
- 1.0.0
-
isBackupEligible
Returns the credential's permanent backup eligibility.- Returns:
- backup eligibility
- Since:
- 1.0.0
-
isBackedUp
Returns the backup state stored by this successful authentication.- Returns:
- current backed-up state
- Since:
- 1.0.0
-
getKind
Returns whether this proof satisfied discoverable sign-in or account-pinned reauthentication.- Returns:
- ceremony kind
- Since:
- 1.0.0
-
getActionPurpose
Returns the action bound to an account-pinned reauthentication, when present.- Returns:
- action purpose
- Since:
- 1.0.0
-
toString
-