Class DefaultChallenge

java.lang.Object
com.webauthn4j.data.client.challenge.DefaultChallenge
All Implemented Interfaces:
Challenge

public class DefaultChallenge extends Object implements Challenge
  • Constructor Details

    • DefaultChallenge

      public DefaultChallenge(@NotNull @org.jetbrains.annotations.NotNull byte[] value)
      Creates a new instance
      Parameters:
      value - the value of the challenge
    • DefaultChallenge

      public DefaultChallenge(@NotNull @NotNull String base64urlString)
    • DefaultChallenge

      public DefaultChallenge()
  • Method Details

    • getValue

      @NotNull public @org.jetbrains.annotations.NotNull byte[] getValue()
      Description copied from interface: Challenge
      Gets the challenge value. Cannot be null.
      Specified by:
      getValue in interface Challenge
      Returns:
      the challenge value
    • equals

      public boolean equals(@Nullable @Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object