Class AuthenticatorTransportConverter

java.lang.Object
com.webauthn4j.converter.AuthenticatorTransportConverter

public class AuthenticatorTransportConverter extends Object
Converter for AuthenticatorTransport This class provides functionality to convert between AuthenticatorTransport objects and their string representation for WebAuthn processing.
  • Constructor Details

    • AuthenticatorTransportConverter

      public AuthenticatorTransportConverter()
  • Method Details

    • convert

      @NotNull public @NotNull AuthenticatorTransport convert(@NotNull @NotNull String value)
      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

      @NotNull public @NotNull String convertToString(@NotNull @NotNull AuthenticatorTransport value)
      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