Class Signature.Builder

java.lang.Object
io.helidon.common.crypto.Signature.Builder
All Implemented Interfaces:
Builder<Signature.Builder,Signature>, Supplier<Signature>
Enclosing class:
Signature

public static final class Signature.Builder extends Object implements Builder<Signature.Builder,Signature>
Builder of the Signature.
  • Method Details

    • algorithm

      public Signature.Builder algorithm(String algorithm)
      Set algorithm which should be used.
      Default value is Signature.ALGORITHM_SHA256_RSA.
      Parameters:
      algorithm - algorithm to be used
      Returns:
      updated builder instance
    • provider

      public Signature.Builder provider(String provider)
      Set provider of the algorithm.
      Parameters:
      provider - provider to be used
      Returns:
      updated builder instance
    • privateKey

      public Signature.Builder privateKey(PrivateKey privateKey)
      Set private key which should be used for signature creation.
      Parameters:
      privateKey - private key
      Returns:
      updated builder instance
    • publicKey

      public Signature.Builder publicKey(PublicKey publicKey)
      Set public key which should be used for signature verification.
      Parameters:
      publicKey - private key
      Returns:
      updated builder instance
    • build

      public Signature build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<Signature.Builder,Signature>
      Returns:
      instance of the built type