|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrypto.Signatures
Provides methods to digitally sign and verify signatures
| Constructor Summary | |
Signatures()
|
|
| Method Summary | |
static byte[] |
generateDigest(byte[] data)
Generates a SHA1 message digest hash |
static byte[] |
sign(java.security.PrivateKey key,
byte[] data)
Digitally signs the given data using the given KeyPair's private key |
static boolean |
verify(java.security.PublicKey key,
byte[] data,
byte[] signed)
Verifies the signature on the given data using the given KeyPair |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Signatures()
| Method Detail |
public static byte[] sign(java.security.PrivateKey key,
byte[] data)
key - The sender's private keydata - The data to be signed
public static boolean verify(java.security.PublicKey key,
byte[] data,
byte[] signed)
key - The sender's public keydata - The unsigned datasigned - The signature
public static byte[] generateDigest(byte[] data)
data - The byte[] to hash
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||