Class AuthenticatorAssertionExtensionOutputs
- 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
Modifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
fromAuthenticatorData
(AuthenticatorData authData) Parse authentication authenticator extension outputs from the given authenticator data.Returns aSet
of the extension IDs for which an extension output is present.getUvm()
int
hashCode()
toString()
-
Method Details
-
fromAuthenticatorData
public static Optional<AuthenticatorAssertionExtensionOutputs> fromAuthenticatorData(AuthenticatorData authData) Parse authentication authenticator extension outputs from the given authenticator data.If the
authData
does not contain authenticator extension outputs, this returns an emptyOptional
.Otherwise, this returns a present
Optional
containing anAuthenticatorAssertionExtensionOutputs
value with all validly-formatted authentication extension outputs supported by this library. This silently ignores registration extension outputs, malformed extension outputs, and unsupported extensions. The raw set of extension outputs can instead be obtained viaAuthenticatorData.getExtensions()
.Note that a present
AuthenticatorAssertionExtensionOutputs
may contain zero extension outputs.- Parameters:
authData
- the authenticator data to parse extension outputs from- Returns:
- an empty
Optional
if theauthData
does not contain authenticator extension outputs. Otherwise a presentOptional
containing parsed extension output values.
-
getExtensionIds
Description copied from interface:ExtensionOutputs
Returns aSet
of the extension IDs for which an extension output is present.- Specified by:
getExtensionIds
in interfaceExtensionOutputs
-
getUvm
- Returns:
- The authenticator
extension output for the User
Verification Method (
uvm
) extension, if any. - See Also:
-
builder
public static AuthenticatorAssertionExtensionOutputs.AuthenticatorAssertionExtensionOutputsBuilder builder() -
toBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-