|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.security.KeyUtils
Utility methods to generate and manipulate keys.
Key
,
KeyPair
Method Summary | |
static java.security.PublicKey |
decodeDSAPublicKey(byte[] encoded)
Decodes the DSA public key out of its X.509 encoding. |
static java.security.PublicKey |
decodeRSAPublicKey(byte[] encoded)
Decodes the RSA public key out of its X.509 encoding. |
static java.security.KeyPair |
generateDSAKeyPair()
Generates an 1024-bit DSA key pair. |
static java.security.KeyPair |
generateDSAKeyPair(int keysize)
Generates DSA key pair of the specified size. |
static java.security.KeyPair |
generateRSAKeyPair()
Generates an 1024-bit RSA key pair. |
static java.security.KeyPair |
generateRSAKeyPair(int keysize)
Generates RSA key pair of the specified size. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.security.KeyPair generateRSAKeyPair()
public static java.security.KeyPair generateRSAKeyPair(int keysize)
keysize
- the RSA key size
public static java.security.PublicKey decodeRSAPublicKey(byte[] encoded)
encoded
- X.509 encoding of an RSA public key
public static java.security.KeyPair generateDSAKeyPair()
public static java.security.KeyPair generateDSAKeyPair(int keysize)
keysize
- the DSA key size
public static java.security.PublicKey decodeDSAPublicKey(byte[] encoded)
encoded
- X.509 encoding of an DSA public key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |