Class SignatureAlgorithm

java.lang.Object
com.webauthn4j.data.SignatureAlgorithm

public class SignatureAlgorithm extends Object
  • Field Details

  • Method Details

    • create

      @Deprecated public static SignatureAlgorithm create(@NotNull @NotNull String value)
      Deprecated.
    • create

      public static SignatureAlgorithm create(@NotNull @NotNull String jcaName, @NotNull @NotNull String messageDigestJcaName)
    • serialize

      @NotNull public @NotNull String serialize()
      Convert SignatureAlgorithm into text representation In the earlier implementation, jcaName was used as a serialized text representation directly. However, since jcaName of RSA-PSS does not contain the message digest algorithm, a custom string different from jcaName is used.
      Returns:
      text representation of SignatureAlgorithm
    • getJcaName

      @NotNull public @NotNull String getJcaName()
    • getMessageDigestAlgorithm

      @NotNull public @NotNull MessageDigestAlgorithm getMessageDigestAlgorithm()
    • 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
      Returns:
      COSEAlgorithmIdentifier style text representation of SignatureAlgorithm