- java.lang.Object
-
- io.helidon.common.crypto.Signature.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Signature.Builderalgorithm(String algorithm)Set algorithm which should be used.Signaturebuild()Build the instance from this builder.Signature.BuilderprivateKey(PrivateKey privateKey)Set private key which should be used for signature creation.Signature.Builderprovider(String provider)Set provider of the algorithm.Signature.BuilderpublicKey(PublicKey publicKey)Set public key which should be used for signature verification.
-
-
-
Method Detail
-
algorithm
public Signature.Builder algorithm(String algorithm)
Set algorithm which should be used.
Default value isSignature.ALGORITHM_SHA256_RSA.- Parameters:
algorithm- algorithm to be used- Returns:
- updated builder instance
-
provider
public Signature.Builder provider(String provider)
Set provider of the algorithm.- Parameters:
provider- provider to be used- Returns:
- updated builder instance
-
privateKey
public Signature.Builder privateKey(PrivateKey privateKey)
Set private key which should be used for signature creation.- Parameters:
privateKey- private key- Returns:
- updated builder instance
-
publicKey
public Signature.Builder publicKey(PublicKey publicKey)
Set public key which should be used for signature verification.- Parameters:
publicKey- private key- Returns:
- updated builder instance
-
-