public interface Signer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SignercreateFromKeyPair(byte[] keyPair) static SignercreateFromKeyPair(byte[] publicKey, byte[] privateKey) static SignercreateFromKeyPair(PublicKey publicKey, PrivateKey privateKey) static SignercreateFromPrivateKey(byte[] privateKey) static byte[]createKeyPairBytesFromPrivateKey(byte[] privateKey) static byte[]static byte[]byte[]sign(byte[] message) byte[]sign(byte[] message, int msgOffset, int msgLen) intsign(byte[] message, int msgOffset, int msgLen, int outPos) static voidvalidateKeyPair(byte[] keyPair) static voidvalidateKeyPair(byte[] privateKey, byte[] expectedPublicKey)
-
Field Details
-
KEY_LENGTH
static final int KEY_LENGTH- See Also:
-
-
Method Details
-
generatePrivateKeyBytes
static byte[] generatePrivateKeyBytes() -
validateKeyPair
static void validateKeyPair(byte[] privateKey, byte[] expectedPublicKey) -
validateKeyPair
static void validateKeyPair(byte[] keyPair) -
generatePrivateKeyPairBytes
static byte[] generatePrivateKeyPairBytes() -
createKeyPairBytesFromPrivateKey
static byte[] createKeyPairBytesFromPrivateKey(byte[] privateKey) -
createFromPrivateKey
-
createFromKeyPair
-
createFromKeyPair
-
createFromKeyPair
-
publicKey
PublicKey publicKey() -
privateKey
PrivateKey privateKey() -
createDedicatedSigner
Signer createDedicatedSigner() -
sign
int sign(byte[] message, int msgOffset, int msgLen, int outPos) -
sign
byte[] sign(byte[] message, int msgOffset, int msgLen) -
sign
byte[] sign(byte[] message)
-