- 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.Builder
algorithm(String algorithm)
Set digest algorithm.HashDigest
build()
Build the instance from this builder.HashDigest.Builder
provider(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:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<HashDigest>
- Returns:
- instance of the built type
-
-