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.
-
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
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<Signature.Builder,
Signature> - Returns:
- instance of the built type
-