Package org.opencms.crypto
Interface I_CmsTextEncryption
- All Superinterfaces:
I_CmsConfigurationParameterHandler
- All Known Implementing Classes:
CmsAESTextEncryption
Interfaces for classes that encrypt text as text.
-
Field Summary
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
-
Method Summary
Modifier and TypeMethodDescriptionDecrypts encrypted data.Encrypts data.getName()
Gets the name of the encryption handler.void
initialize
(CmsObject cms) Initializes the encryption handler.void
Sets the name of the encryption handler.Methods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
addConfigurationParameter, getConfiguration, initConfiguration
-
Method Details
-
decrypt
Decrypts encrypted data.- Parameters:
input
- the encrypted data- Returns:
- the decrypted data
- Throws:
CmsEncryptionException
- if the data couldn't be decrypted
-
encrypt
Encrypts data.- Parameters:
input
- the data to encrypt- Returns:
- the encrypted data
- Throws:
CmsEncryptionException
- if the data couldn't be encrypted
-
getName
Gets the name of the encryption handler.- Returns:
- the name
-
initialize
Initializes the encryption handler.- Parameters:
cms
- an Admin CMS context
-
setName
Sets the name of the encryption handler.- Parameters:
name
- the name that should be set
-