java.lang.Object
com.webauthn4j.converter.AuthenticatorTransportConverter
Converter for
AuthenticatorTransport
This class provides functionality to convert between AuthenticatorTransport objects and their string
representation for WebAuthn processing.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull AuthenticatorTransportConverts a string to an AuthenticatorTransport object.@NotNull Set<AuthenticatorTransport>convertSet(@NotNull Set<String> values) Converts a set of strings to a set of AuthenticatorTransport objects.convertSetToStringSet(@NotNull Set<AuthenticatorTransport> values) Converts a set of AuthenticatorTransport objects to a set of strings.@NotNull StringconvertToString(@NotNull AuthenticatorTransport value) Converts an AuthenticatorTransport object to its string representation.
-
Constructor Details
-
AuthenticatorTransportConverter
public AuthenticatorTransportConverter()
-
-
Method Details
-
convert
Converts a string to an AuthenticatorTransport object.- Parameters:
value- the string representation of authenticator transport- Returns:
- the converted AuthenticatorTransport object
- Throws:
DataConversionException- if conversion fails
-
convertSet
@NotNull public @NotNull Set<AuthenticatorTransport> convertSet(@NotNull @NotNull Set<String> values) Converts a set of strings to a set of AuthenticatorTransport objects.- Parameters:
values- the set of string representations of authenticator transports- Returns:
- the set of converted AuthenticatorTransport objects
- Throws:
DataConversionException- if conversion fails
-
convertToString
Converts an AuthenticatorTransport object to its string representation.- Parameters:
value- the AuthenticatorTransport object to convert- Returns:
- string representation of the AuthenticatorTransport object
- Throws:
DataConversionException- if conversion fails
-
convertSetToStringSet
@NotNull public @NotNull Set<String> convertSetToStringSet(@NotNull @NotNull Set<AuthenticatorTransport> values) Converts a set of AuthenticatorTransport objects to a set of strings.- Parameters:
values- the set of AuthenticatorTransport objects to convert- Returns:
- the set of string representations of the AuthenticatorTransport objects
- Throws:
DataConversionException- if conversion fails
-