- java.lang.Object
-
- io.helidon.common.crypto.HashDigest.Builder
-
- All Implemented Interfaces:
Builder<HashDigest>,Supplier<HashDigest>
- Enclosing class:
- HashDigest
public static final class HashDigest.Builder extends Object implements Builder<HashDigest>
Builder of theHashDigest.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HashDigest.Builderalgorithm(String algorithm)Set digest algorithm.HashDigestbuild()Build the instance from this builder.HashDigest.Builderprovider(String provider)Set provider of the algorithm.
-
-
-
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:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<HashDigest>- Returns:
- instance of the built type
-
-