Class GatewaySec
java.lang.Object
com.inductiveautomation.ignition.common.GatewaySec
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
Constructor Details- 
GatewaySecpublic GatewaySec()
 
- 
- 
Method Details- 
encryptEncrypts the bytes of the given string, and returns the results using hex encoding. This should be used when dealing with clients.- Throws:
- Exception
 
- 
encryptThis should be used when dealing with clients.- Throws:
- Exception
 
- 
encrypt- Throws:
- Exception
 
- 
encrypt- Throws:
- Exception
 
- 
decryptUses the default encryption key. This should be used when dealing with clients.- Throws:
- Exception
 
- 
decryptUses the default encryption key. This should be used when dealing with clients.- Throws:
- Exception
 
- 
decrypt- Throws:
- Exception
 
- 
decrypt- Throws:
- Exception
 
- 
customKeyOrDefaultpublic static byte[] customKeyOrDefault()Returns the encoding key specified by -DencodingKey, otherwise returns the default.
 
-