Class Signature.Builder
java.lang.Object
io.helidon.common.crypto.Signature.Builder
- All Implemented Interfaces:
Builder<Signature.Builder, Signature>, Supplier<Signature>
- Enclosing class:
Signature
public static final class Signature.Builder
extends Object
implements Builder<Signature.Builder, Signature>
Builder of the
Signature.-
Method Summary
Modifier and TypeMethodDescriptionSet algorithm which should be used.build()Build the instance from this builder.privateKey(PrivateKey privateKey) Set private key which should be used for signature creation.Set provider of the algorithm.Set public key which should be used for signature verification.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 Signatureget()default Signature.Builderidentity()Instance of this builder as the correct type.default Signature.Builderupdate(Consumer<Signature.Builder> consumer) Update the builder in a fluent API way.
-
Method Details
-
algorithm
Set algorithm which should be used.
Default value isSignature.ALGORITHM_SHA256_RSA.- 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
-
privateKey
Set private key which should be used for signature creation.- Parameters:
privateKey- private key- Returns:
- updated builder instance
-
publicKey
Set public key which should be used for signature verification.- Parameters:
publicKey- private key- Returns:
- updated builder instance
-
build
-