public class POPJavaDeamon
extends java.lang.Object
implements java.lang.Runnable, java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERROR_PWD |
static java.lang.String |
SUCCESS |
| Constructor and Description |
|---|
POPJavaDeamon(java.lang.String password) |
POPJavaDeamon(java.lang.String password,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stops the POP-Java listener daemon
|
static javax.crypto.Cipher |
createKey(java.lang.String salt,
java.lang.String password,
boolean encrypt)
Mode has is Cipher.ENCRYPT_MODE o
|
static java.lang.String |
getSaltedHash(java.lang.String salt,
java.lang.String secret) |
static boolean |
isClasspathValid(java.lang.String classPath) |
static void |
main(java.lang.String... args) |
void |
run() |
void |
start()
Starts the POP-Java listener daemon
|
public static final java.lang.String SUCCESS
public static final java.lang.String ERROR_PWD
public POPJavaDeamon(java.lang.String password)
public POPJavaDeamon(java.lang.String password,
int port)
public static javax.crypto.Cipher createKey(java.lang.String salt,
java.lang.String password,
boolean encrypt)
salt - to mask the passwordpassword - to match on the other sideencrypt - if we are encrypting or decryptingpublic static boolean isClasspathValid(java.lang.String classPath)
public static void main(java.lang.String... args)
throws java.io.IOException
java.io.IOExceptionpublic void start()
throws java.io.IOException
java.io.IOException - if any i/o problem occurspublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException - if any i/o problem occurspublic static java.lang.String getSaltedHash(java.lang.String salt,
java.lang.String secret)
public void run()
run in interface java.lang.Runnable