Class CollectedClientDataConverter

java.lang.Object
com.webauthn4j.converter.CollectedClientDataConverter

public class CollectedClientDataConverter extends Object
Converter for CollectedClientData
  • Constructor Details

    • CollectedClientDataConverter

      public CollectedClientDataConverter(@NotNull @NotNull ObjectConverter objectConverter)
  • Method Details

    • convert

      @Nullable public @Nullable CollectedClientData convert(@NotNull @NotNull String base64UrlString)
      Converts from a base64url String to CollectedClientData.
      Parameters:
      base64UrlString - the source byte array to convert
      Returns:
      the converted object
    • convert

      @Nullable public @Nullable CollectedClientData convert(@NotNull @org.jetbrains.annotations.NotNull byte[] source)
      Converts from a byte array to CollectedClientData.
      Parameters:
      source - the source byte array to convert
      Returns:
      the converted object
    • convertToBytes

      @NotNull public @org.jetbrains.annotations.NotNull byte[] convertToBytes(@NotNull @NotNull CollectedClientData source)
      Converts from a CollectedClientData to byte[].
      Parameters:
      source - the source object to convert
      Returns:
      the converted byte array
    • convertToBase64UrlString

      @NotNull public @NotNull String convertToBase64UrlString(@NotNull @NotNull CollectedClientData source)
      Converts from a CollectedClientData to base64 url String.
      Parameters:
      source - the source object to convert
      Returns:
      the converted byte array