Class CmsAESTextEncryption

    • Constructor Summary

      Constructors 
      Constructor Description
      CmsAESTextEncryption()
      Default constructor (used when instantiated automatically during OpenCms configuration).
      CmsAESTextEncryption​(java.lang.String secret)
      Constructor used to manually, conveniently create a new encryption object with a given secret.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addConfigurationParameter​(java.lang.String paramName, java.lang.String paramValue)
      Adds a configuration parameter to this parameter configurable class instance.
      java.lang.String decrypt​(java.lang.String input)
      Decrypts encrypted data.
      java.lang.String encrypt​(java.lang.String input)
      Encrypts data.
      static javax.crypto.SecretKey generateAESKey​(java.lang.String secret)
      Helper method for generating an AES key from a secret string.
      CmsParameterConfiguration getConfiguration()
      Returns the parameters of this configurable class instance, or null if the class does not need any parameters.
      java.lang.String getName()
      Gets the name of the encryption handler.
      void initConfiguration()
      Initializes a configuration after all parameters have been added.
      void initialize​(CmsObject cms)
      Initializes the encryption handler.
      void setName​(java.lang.String name)
      Sets the name of the encryption handler.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait