Class HashDigest.Builder

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

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

    • algorithm

      public HashDigest.Builder algorithm(String algorithm)
      Set digest algorithm.
      Parameters:
      algorithm - algorithm to be used
      Returns:
      updated builder instance
    • provider

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

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