Constructor and Description |
---|
Validate() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkIfANumber(String port)
Check if the port passed is an number
|
static boolean |
checkIFIPIsCorrect(String IP)
Check if the introduced IP was valid
|
static boolean |
checkPort(int port)
Check the port if is on allowed communication ports
|
static String |
encrypt(byte[] plainText)
Converts a password into encrypted string
|
static String |
removeMessage(String message)
Removes the unnecessary trash from the datagram messages
|
public Validate()
public static boolean checkIFIPIsCorrect(String IP)
IP
- IP to be checkedpublic static boolean checkPort(int port)
port
- port to be testedpublic static boolean checkIfANumber(String port)
port
- port to be testedpublic static String removeMessage(String message)
message
- the message that will be necessary remove the content