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