|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.PingOO.DLAI.PPM.codec.ToServerCodec
This class use the server's public key to encrypt messages from the client.
| Constructor Summary | |
private |
ToServerCodec()
Hides the constructor from the outside. |
| Method Summary | |
static byte[] |
encode(byte[] data)
Encrypts a byte array using the default method. |
static byte[] |
encode(char[] data)
Encrypts a String using the default method. |
static byte[] |
encode(java.lang.String data)
Encrypts a String using the default method. |
static void |
setPublicKey(java.lang.String key)
Sets the public key needed to encode message before they are sent to the server. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
private ToServerCodec()
| Method Detail |
public static void setPublicKey(java.lang.String key)
key -
public static byte[] encode(byte[] data)
throws java.lang.NullPointerException
data - The datas to encrypt.null.
public static byte[] encode(java.lang.String data)
throws java.lang.NullPointerException
data - The datas to encrypt.null.
public static byte[] encode(char[] data)
throws java.lang.NullPointerException
data - The datas to encrypt.null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||