Module com.webauthn4j.core
Package com.webauthn4j.converter
Class AuthenticationExtensionsClientOutputsConverter
java.lang.Object
com.webauthn4j.converter.AuthenticationExtensionsClientOutputsConverter
Converter for
AuthenticationExtensionsClientOutputs
This class provides functionality to convert between AuthenticationExtensionsClientOutputs objects and their JSON string
representation for WebAuthn extensions processing.-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationExtensionsClientOutputsConverter(@NotNull ObjectConverter objectConverter) Creates a new AuthenticationExtensionsClientOutputsConverter instance. -
Method Summary
Modifier and TypeMethodDescription<T extends ExtensionClientOutput>
@Nullable AuthenticationExtensionsClientOutputs<T>Converts a JSON string to an AuthenticationExtensionsClientOutputs object.<T extends ExtensionClientOutput>
@NotNull StringconvertToString(@NotNull AuthenticationExtensionsClientOutputs<T> value) Converts an AuthenticationExtensionsClientOutputs object to its JSON string representation.
-
Constructor Details
-
AuthenticationExtensionsClientOutputsConverter
public AuthenticationExtensionsClientOutputsConverter(@NotNull @NotNull ObjectConverter objectConverter) Creates a new AuthenticationExtensionsClientOutputsConverter instance.- Parameters:
objectConverter- converter for data serialization- Throws:
IllegalArgumentException- if objectConverter is null
-
-
Method Details
-
convert
@Nullable public <T extends ExtensionClientOutput> @Nullable AuthenticationExtensionsClientOutputs<T> convert(@NotNull @NotNull String value) Converts a JSON string to an AuthenticationExtensionsClientOutputs object.- Type Parameters:
T- the type of extension client output- Parameters:
value- JSON string representation of authentication extensions client outputs- Returns:
- the converted AuthenticationExtensionsClientOutputs object
- Throws:
DataConversionException- if conversion fails
-
convertToString
@NotNull public <T extends ExtensionClientOutput> @NotNull String convertToString(@NotNull @NotNull AuthenticationExtensionsClientOutputs<T> value) Converts an AuthenticationExtensionsClientOutputs object to its JSON string representation.- Type Parameters:
T- the type of extension client output- Parameters:
value- the AuthenticationExtensionsClientOutputs object to convert- Returns:
- JSON string representation of the AuthenticationExtensionsClientOutputs object
- Throws:
DataConversionException- if conversion fails
-