Class GatewaySec
java.lang.Object
com.inductiveautomation.ignition.common.GatewaySec
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]Returns the encoding key specified by -DencodingKey, otherwise returns the default.static byte[]decrypt(byte[] toDecrypt) Uses the default encryption key.static byte[]decrypt(byte[] toDecrypt, byte[] encodingKey) static StringUses the default encryption key.static Stringstatic byte[]encrypt(byte[] toEncrypt) This should be used when dealing with clients.static byte[]encrypt(byte[] toEncrypt, byte[] encodingKey) static StringEncrypts the bytes of the given string, and returns the results using hex encoding.static String
-
Method Details
-
encrypt
Encrypts the bytes of the given string, and returns the results using hex encoding. This should be used when dealing with clients.- Throws:
Exception
-
encrypt
This should be used when dealing with clients.- Throws:
Exception
-
encrypt
- Throws:
Exception
-
encrypt
- Throws:
Exception
-
decrypt
Uses the default encryption key. This should be used when dealing with clients.- Throws:
Exception
-
decrypt
Uses the default encryption key. This should be used when dealing with clients.- Throws:
Exception
-
decrypt
- Throws:
Exception
-
decrypt
- Throws:
Exception
-
customKeyOrDefault
public static byte[] customKeyOrDefault()Returns the encoding key specified by -DencodingKey, otherwise returns the default.
-