Class AuthenticatorAssertionExtensionOutputs
- java.lang.Object
-
- com.yubico.webauthn.data.AuthenticatorAssertionExtensionOutputs
-
- All Implemented Interfaces:
AuthenticatorExtensionOutputs
,ExtensionOutputs
public final class AuthenticatorAssertionExtensionOutputs extends java.lang.Object implements AuthenticatorExtensionOutputs
Contains authenticator extension outputs from anavigator.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:
- §9. WebAuthn Extensions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthenticatorAssertionExtensionOutputs.AuthenticatorAssertionExtensionOutputsBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthenticatorAssertionExtensionOutputs.AuthenticatorAssertionExtensionOutputsBuilder
builder()
boolean
equals(java.lang.Object o)
static java.util.Optional<AuthenticatorAssertionExtensionOutputs>
fromAuthenticatorData(AuthenticatorData authData)
Parse authentication authenticator extension outputs from the given authenticator data.java.util.Set<java.lang.String>
getExtensionIds()
Returns aSet
of the extension IDs for which an extension output is present.java.util.Optional<java.util.List<Extensions.Uvm.UvmEntry>>
getUvm()
int
hashCode()
AuthenticatorAssertionExtensionOutputs.AuthenticatorAssertionExtensionOutputsBuilder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
fromAuthenticatorData
public static java.util.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
public java.util.Set<java.lang.String> 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
public java.util.Optional<java.util.List<Extensions.Uvm.UvmEntry>> getUvm()
- Returns:
- The authenticator
extension output for the User
Verification Method (
uvm
) extension, if any. - See Also:
- §10.3. User Verification Method extension (uvm)
-
builder
public static AuthenticatorAssertionExtensionOutputs.AuthenticatorAssertionExtensionOutputsBuilder builder()
-
toBuilder
public AuthenticatorAssertionExtensionOutputs.AuthenticatorAssertionExtensionOutputsBuilder toBuilder()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-