|
WEBsina Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.websina.util.security.KeyUtil
This is a utility class encode and decode keys.
Constructor Summary | |
KeyUtil()
|
Method Summary | |
static java.security.KeyPair |
getKeyPair()
The method gets the key pair. |
static java.security.PrivateKey |
getPrivate(byte[] encodedKey)
This method gets the private key from the encoded byte. |
static java.security.PublicKey |
getPublic(byte[] encodedKey)
The method gets the public key from the encoded byte. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KeyUtil()
Method Detail |
public static java.security.PublicKey getPublic(byte[] encodedKey) throws java.security.spec.InvalidKeySpecException
encodedKey
- the encoded public key in bytes.
java.security.spec.InvalidKeySpecException
public static java.security.PrivateKey getPrivate(byte[] encodedKey) throws java.security.spec.InvalidKeySpecException
encodedKey
- the encoded private key in bytes.
java.security.spec.InvalidKeySpecException
public static java.security.KeyPair getKeyPair()
|
WEBsina Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |