|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.crypto.ByteSignature
public final class ByteSignature
This class contains all basic signature operations.
Constructor Summary | |
---|---|
private |
ByteSignature()
This class works without being initialised and is completely static. |
Method Summary | |
---|---|
static byte[] |
sign(byte[] a_message,
AsymmetricCryptoKeyPair a_keyPair)
Signs a message. |
static byte[] |
sign(byte[] a_message,
IMyPrivateKey a_privateKey)
Signs a message. |
static java.lang.String |
toHexString(byte[] a_bytes)
Creates, from a given byte array, a readable byte string of the form AA:C3:02:21:... |
static java.lang.String |
toHexString(byte[] a_bytes,
java.lang.String a_separator)
|
static boolean |
verify(byte[] a_message,
byte[] a_signature,
AsymmetricCryptoKeyPair a_keyPair)
Verifies the signature for a message. |
static boolean |
verify(byte[] a_message,
byte[] a_signature,
IMyPublicKey a_publicKey)
Verifies the signature for a message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private ByteSignature()
Method Detail |
---|
public static boolean verify(byte[] a_message, byte[] a_signature, AsymmetricCryptoKeyPair a_keyPair)
a_message
- a messagea_signature
- the signature to verifya_keyPair
- a key pair for verification of the signature
public static boolean verify(byte[] a_message, byte[] a_signature, IMyPublicKey a_publicKey)
a_message
- a messagea_signature
- the signature to verifya_publicKey
- a public key for verification of the signature
public static byte[] sign(byte[] a_message, AsymmetricCryptoKeyPair a_keyPair)
a_message
- the message to signa_keyPair
- a key pair for signing
public static byte[] sign(byte[] a_message, IMyPrivateKey a_privateKey)
a_message
- the message to signa_privateKey
- a private key for signing
public static java.lang.String toHexString(byte[] a_bytes)
a_bytes
- a byte array
public static java.lang.String toHexString(byte[] a_bytes, java.lang.String a_separator)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |