- java.lang.Object
-
- io.helidon.common.crypto.HmacDigest.Builder
-
- All Implemented Interfaces:
Builder<HmacDigest>,Supplier<HmacDigest>
- Enclosing class:
- HmacDigest
public static final class HmacDigest.Builder extends Object implements Builder<HmacDigest>
Builder of theHmacDigest.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HmacDigest.Builderalgorithm(String algorithm)Set new HMAC algorithm.HmacDigestbuild()Build the instance from this builder.HmacDigest.BuilderhmacSecret(byte[] hmacSecret)Secret key to be used in HMAC algorithm.HmacDigest.Builderprovider(String provider)Set provider of the algorithm.
-
-
-
Method Detail
-
algorithm
public HmacDigest.Builder algorithm(String algorithm)
Set new HMAC algorithm.
Default value isHmacDigest.ALGORITHM_SHA_256- Parameters:
algorithm- algorithm to set- Returns:
- updated builder instance
-
provider
public HmacDigest.Builder provider(String provider)
Set provider of the algorithm.- Parameters:
provider- provider to set- Returns:
- updated builder instance
-
hmacSecret
public HmacDigest.Builder hmacSecret(byte[] hmacSecret)
Secret key to be used in HMAC algorithm.- Parameters:
hmacSecret- secret key- Returns:
- updated builder instance
-
build
public HmacDigest build()
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<HmacDigest>- Returns:
- instance of the built type
-
-