Class GatewaySec
java.lang.Object
com.inductiveautomation.ignition.common.GatewaySec
-
Constructor Summary
Constructors -
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 String
Uses the default encryption key.static String
static byte[]
encrypt
(byte[] toEncrypt) This should be used when dealing with clients.static byte[]
encrypt
(byte[] toEncrypt, byte[] encodingKey) static String
Encrypts the bytes of the given string, and returns the results using hex encoding.static String
-
Constructor Details
-
GatewaySec
public GatewaySec()
-
-
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.
-