Class Secp256k1JWK

java.lang.Object
org.web3j.crypto.Secp256k1JWK

public final class Secp256k1JWK extends Object
This class consists in java representation of JWK file. It uses Builder pattern in order to generate the JWK content from the BCEC asymetric keys receive as parameters. This class supports generation of JWK only for ECDSA type keys that have secp256k1 curve.
  • Method Details

    • getKty

      public String getKty()
    • getCrv

      public String getCrv()
    • getX

      public String getX()
    • getY

      public String getY()
    • getD

      public String getD()
    • isEcCoordBase64Valid

      public static boolean isEcCoordBase64Valid(String s)
      Returns true if the string is empty or contains only white space codepoints, otherwise false. This is specific only for secp256k1 curve encoded coordinates.
      Parameters:
      s - String value
      Returns:
      is given string is Blank or not