Class AuthenticatorRegistrationExtensionOutputs
- All Implemented Interfaces:
AuthenticatorExtensionOutputs,ExtensionOutputs
navigator.credentials.create() operation.
Note that there is no guarantee that any extension input present in RegistrationExtensionInputs will have a corresponding output present here.
The values contained here are parsed from the AuthenticatorData structure.
The client extension outputs are represented by the ClientRegistrationExtensionOutputs
type.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanfromAuthenticatorData(AuthenticatorData authData) Parse registration authenticator extension outputs from the given authenticator data.Returns aSetof recognized extension IDs for which an extension output is present.getUvm()inthashCode()toString()
-
Method Details
-
fromAuthenticatorData
public static Optional<AuthenticatorRegistrationExtensionOutputs> fromAuthenticatorData(AuthenticatorData authData) Parse registration authenticator extension outputs from the given authenticator data.If the
authDatadoes not contain authenticator extension outputs, this returns an emptyOptional.Otherwise, this returns a present
Optionalcontaining anAuthenticatorRegistrationExtensionOutputsvalue with all validly-formatted registration extension outputs supported by this library. This silently ignores authentication extension outputs, malformed extension outputs, and unsupported extensions. The raw set of extension outputs can instead be obtained viaAuthenticatorData.getExtensions().Note that a present
AuthenticatorRegistrationExtensionOutputsmay contain zero extension outputs.- Parameters:
authData- the authenticator data to parse extension outputs from- Returns:
- an empty
Optionalif theauthDatadoes not contain authenticator extension outputs. Otherwise a presentOptionalcontaining parsed extension output values.
-
getExtensionIds
Description copied from interface:ExtensionOutputsReturns aSetof recognized extension IDs for which an extension output is present.This only includes extension identifiers recognized by the java-webauthn-server library. Recognized extensions can be found as the properties of
ClientRegistrationExtensionOutputsfor registration ceremonies, andClientAssertionExtensionOutputsfor authentication ceremonies. Unknown extension identifiers are silently ignored.- Specified by:
getExtensionIdsin interfaceExtensionOutputs
-
getUvm
- Returns:
- The authenticator
extension output for the User
Verification Method (
uvm) extension, if any. - See Also:
-
builder
public static AuthenticatorRegistrationExtensionOutputs.AuthenticatorRegistrationExtensionOutputsBuilder builder() -
toBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-