Class AbstractSymmetricCipherService

    • Constructor Detail

      • AbstractSymmetricCipherService

        protected AbstractSymmetricCipherService​(String algorithmName)
    • Method Detail

      • generateNewKey

        public Key generateNewKey()
        Generates a new Key suitable for this CipherService's algorithm by calling generateNewKey(128) (uses a 128 bit size by default).
        Returns:
        a new Key, 128 bits in length.
      • generateNewKey

        public Key generateNewKey​(int keyBitSize)
        Generates a new Key of the specified size suitable for this CipherService (based on the algorithmName using the JDK KeyGenerator.
        Parameters:
        keyBitSize - the bit size of the key to create
        Returns:
        the created key suitable for use with this CipherService