Class JwkRSA

java.lang.Object
io.helidon.security.jwt.jwk.Jwk
io.helidon.security.jwt.jwk.JwkRSA

public class JwkRSA extends Jwk
RSA JSON web key.
  • Field Details

  • Method Details

    • builder

      public static JwkRSA.Builder builder()
      Create a builder instance.
      Returns:
      builder ready to create a new JwkRSA instance.
    • create

      public static JwkRSA create(JsonObject json)
      Create an instance from Json object.
      Parameters:
      json - with definition of this RSA web key
      Returns:
      new instance of this class constructed from json
      See Also:
    • privateKey

      public Optional<PrivateKey> privateKey()
      Private key if available.
      Returns:
      private key
    • publicKey

      public PublicKey publicKey()
      Public key.
      Returns:
      public key
    • certificateChain

      public Optional<List<X509Certificate>> certificateChain()
      X.509 certificate chain.
      Returns:
      certificate chain
    • sha1Thumbprint

      public Optional<byte[]> sha1Thumbprint()
      X.509 certificate SHA-1 thumbprint.
      Returns:
      SHA-1 thumbprint bytes
    • sha256Thumbprint

      public Optional<byte[]> sha256Thumbprint()
      X.509 certificate SHA-256 thumbprint.
      Returns:
      SHA-256 thumbprint bytes
    • doVerify

      public boolean doVerify(byte[] signedBytes, byte[] signatureToVerify)
    • doSign

      public byte[] doSign(byte[] bytesToSign)