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 Summary
Modifier and TypeMethodDescriptionSet digest algorithm.build()Build the instance from this builder.Set provider of the algorithm.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault HashDigestget()default HashDigest.Builderidentity()Instance of this builder as the correct type.default HashDigest.Builderupdate(Consumer<HashDigest.Builder> consumer) Update the builder in a fluent API way.
-
Method Details
-
algorithm
Set digest algorithm.- Parameters:
algorithm- algorithm to be used- Returns:
- updated builder instance
-
provider
Set provider of the algorithm.- Parameters:
provider- provider to be used- Returns:
- updated builder instance
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<HashDigest.Builder, HashDigest>- Returns:
- instance of the built type
-