Class HashDigest.Builder

    • Method Detail

      • 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>
        Returns:
        instance of the built type