public enum Signature extends Enum<Signature>
| Modifier and Type | Class and Description |
|---|---|
static class |
Signature.KeyPair
Helper class to handle KeyPair creation Explicitly named static methods are provided to help avoid mistakes from calling the wrong
constructor overload Constructors in turn are made private
|
static class |
Signature.MultiPart
Wrapper for signing multi-part messages composed of a sequence of arbitrarily-sized chunks
|
static class |
Signature.PublicKey
Helper class to manage the public part of a KeyPair A PublicKey is created internally as part of a KeyPair, and provides a
strongly-typed wrapper over the underlying BytesStore
|
static class |
Signature.SecretKey
Helper class to manage the secret part of a KeyPair A SecretKey is created internally as part of a KeyPair, and provides a
strongly-typed wrapper over the underlying BytesStore
|
| Modifier and Type | Method and Description |
|---|---|
static net.openhft.chronicle.bytes.BytesStore |
sign(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message,
net.openhft.chronicle.bytes.BytesStore secretKey)
Underlying sign call taking explicit BytesStores Where possible the strongly-typed versions above should be preferred
|
static net.openhft.chronicle.bytes.BytesStore |
sign(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message,
Signature.SecretKey secretKey)
As above, but result BytesStore is passed in first arg
|
static net.openhft.chronicle.bytes.BytesStore |
sign(net.openhft.chronicle.bytes.BytesStore message,
Signature.SecretKey secretKey)
Sign a message given a secret key
|
static Signature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Signature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static net.openhft.chronicle.bytes.BytesStore |
verify(@Nullable net.openhft.chronicle.bytes.BytesStore result,
@NotNull net.openhft.chronicle.bytes.BytesStore message,
net.openhft.chronicle.bytes.BytesStore publicKey)
Underlying decrypt call taking explicit BytesStores Where possible the strongly-typed versions above should be preferred
|
static net.openhft.chronicle.bytes.BytesStore |
verify(@Nullable net.openhft.chronicle.bytes.BytesStore result,
@NotNull net.openhft.chronicle.bytes.BytesStore message,
Signature.PublicKey publicKey)
As above, but result BytesStore is passed in first arg
|
static @NotNull net.openhft.chronicle.bytes.BytesStore |
verify(@NotNull net.openhft.chronicle.bytes.BytesStore message,
Signature.PublicKey publicKey)
Verify a signed message using the signer's public key
|
public static Signature[] values()
for (Signature c : Signature.values()) System.out.println(c);
public static Signature valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static net.openhft.chronicle.bytes.BytesStore sign(net.openhft.chronicle.bytes.BytesStore message,
Signature.SecretKey secretKey)
message - - the message to signsecretKey - - the signer's private keypublic static net.openhft.chronicle.bytes.BytesStore sign(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message,
Signature.SecretKey secretKey)
result - - the ByteStore for the signed messagemessage - - the message to signsecretKey - - the signer's private keypublic static net.openhft.chronicle.bytes.BytesStore sign(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message,
net.openhft.chronicle.bytes.BytesStore secretKey)
result - - the ByteStore for the signed messagemessage - - the message to signsecretKey - - the signer's private key@NotNull
public static @NotNull net.openhft.chronicle.bytes.BytesStore verify(@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore message,
Signature.PublicKey publicKey)
message - - the signed messagepublicKey - - the signer's public keypublic static net.openhft.chronicle.bytes.BytesStore verify(@Nullable
@Nullable net.openhft.chronicle.bytes.BytesStore result,
@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore message,
Signature.PublicKey publicKey)
result - - the BytesStore for the cleartext resultmessage - - the signed messagepublicKey - - the signer's public keypublic static net.openhft.chronicle.bytes.BytesStore verify(@Nullable
@Nullable net.openhft.chronicle.bytes.BytesStore result,
@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore message,
net.openhft.chronicle.bytes.BytesStore publicKey)
result - - the BytesStore for the cleartext resultmessage - - the signed messagepublicKey - - the signer's public keyCopyright © 2023. All rights reserved.