@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class EncryptionServices extends Resource
BASIC_PROPERTIESNAME_COMPARATOR| Constructor and Description |
|---|
EncryptionServices() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
DecryptWithCustomKey(java.lang.String key,
java.lang.String encryptedData)
Service Category: Encryption
Service Description: Returns decrypted data using the Base64 encoded key with valid sizes; 128, 192 or 256 bits.
|
java.lang.String |
DecryptWithKey(java.lang.String key,
java.lang.String data)
Deprecated.
Use
DecryptWithCustomKey(String, String) instead. |
java.lang.String |
Encrypt(java.lang.String data)
Service Category: Encryption
Service Description: Returns an encrypted password.
|
java.lang.String |
EncryptPropertyValue(java.lang.String data)
Service Category: Encryption
Service Description: Returns an encrypted property value.
|
java.lang.String |
EncryptWithCustomKey(java.lang.String key,
java.lang.String data)
Service Category: Encryption
Service Description: Returns an encrypted string using a Base64 encoded key with AES 128 supported key lengths; 128, 192 or 256 bits.
|
java.lang.String |
EncryptWithKey(java.lang.String key,
java.lang.String data)
Deprecated.
Use
EncryptWithCustomKey(String, String) instead. |
java.lang.String |
GenerateKey(java.lang.Integer size)
Service Category: Encryption
Service Description: Returns a Base64 encoded AES encryption key.
|
getEntityTypegetInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequestAddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, validateConfigurationgetID, hasID, isTransientgetDescription, getName, setDescription, setName, toValueCollectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetID, hasIDgetDescription, getNamegetID, getName@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String Encrypt(java.lang.String data) throws java.lang.Exception
data - Data to encrypt - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String EncryptPropertyValue(java.lang.String data) throws java.lang.Exception
data - Data to encrypt - STRINGjava.lang.Exception - If an error occurs@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,3}) public java.lang.String EncryptWithKey(java.lang.String key, java.lang.String data) throws java.lang.Exception
EncryptWithCustomKey(String, String) instead.key - Encryption key to use (56 hex characters)data - Data to encryptjava.lang.Exception - emit errors@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,3}) public java.lang.String DecryptWithKey(java.lang.String key, java.lang.String data) throws java.lang.Exception
DecryptWithCustomKey(String, String) instead.key - Encryption key to use (56 hex characters)data - Data to decryptjava.lang.Exception - emit errors@ThingworxExtensionApiMethod(since={8,3}) public java.lang.String GenerateKey(java.lang.Integer size) throws java.lang.Exception
size - Size of the key to be generated in bits. Supported key sizes are 128, 192 and 256 bits - INTEGERjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={8,3}) public java.lang.String EncryptWithCustomKey(java.lang.String key, java.lang.String data) throws java.lang.Exception
key - Based64 encoded key with key size of 128, 192 or 256 bits - STRINGdata - Plain text data to encrypt - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={8,3}) public java.lang.String DecryptWithCustomKey(java.lang.String key, java.lang.String encryptedData) throws java.lang.Exception
key - Based64 encoded key with sizes of 128, 192 or 256 bits - STRINGencryptedData - Data encrypted using Thingworx EncryptWithCustomKey service - STRINGjava.lang.Exception - If an error occurs