@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class SecureData extends java.lang.Object
| Constructor and Description |
|---|
SecureData() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decrypt(byte[] key,
byte[] iv,
byte[] data) |
static byte[] |
decrypt(java.lang.String key,
byte[] data)
Deprecated.
Use
decrypt(byte[], byte[], byte[]) instead. |
static java.lang.String |
decryptBase64(java.lang.String key,
java.lang.String data)
Deprecated.
Use
decryptWithCustomKey(byte[], byte[]) instead. |
static byte[] |
decryptWithCustomKey(byte[] keyBytes,
byte[] dataBytes) |
static byte[] |
encrypt(byte[] key,
byte[] iv,
byte[] data) |
static byte[] |
encrypt(java.lang.String key,
byte[] data)
Deprecated.
Use
encrypt(byte[], byte[], byte[]) instead. |
static java.lang.String |
encryptBase64(java.lang.String key,
java.lang.String data)
Deprecated.
Use
encryptWithCustomKey(byte[], byte[]) instead. |
static byte[] |
encryptWithCustomKey(byte[] keyBytes,
byte[] dataBytes) |
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,3}) public static java.lang.String encryptBase64(java.lang.String key, java.lang.String data) throws java.lang.Exception
encryptWithCustomKey(byte[], byte[]) instead.key - Encryption key that is a 56 hex characters stringdata - The plain text data to be encryptedjava.lang.Exception - emit errors@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,3}) public static java.lang.String decryptBase64(java.lang.String key, java.lang.String data) throws java.lang.Exception
decryptWithCustomKey(byte[], byte[]) instead.key - Decryption key that is a 56 hex characters stringdata - Base64 encoded encrypted datajava.lang.Exception - emit errors@ThingworxExtensionApiMethod(since={8,3}) public static byte[] encryptWithCustomKey(byte[] keyBytes, byte[] dataBytes) throws java.lang.Exception
java.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={8,3}) public static byte[] decryptWithCustomKey(byte[] keyBytes, byte[] dataBytes) throws java.lang.Exception
java.lang.Exception - If an error occurs@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,3}) public static byte[] encrypt(java.lang.String key, byte[] data) throws java.lang.Exception
encrypt(byte[], byte[], byte[]) instead.key - Encryption key to use (56 hex characters)data - Data to be encryptedjava.lang.Exception - emit errors@ThingworxExtensionApiMethod(since={6,6}) public static byte[] encrypt(byte[] key, byte[] iv, byte[] data) throws java.lang.Exception
java.lang.Exception - If an error occurs@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,3}) public static byte[] decrypt(java.lang.String key, byte[] data) throws java.lang.Exception
decrypt(byte[], byte[], byte[]) instead.key - Decryption key to use (56 hex characters)data - Encrypted data in bytesjava.lang.Exception - emit errors@ThingworxExtensionApiMethod(since={6,6}) public static byte[] decrypt(byte[] key, byte[] iv, byte[] data) throws java.lang.Exception
java.lang.Exception - If an error occurs