Class AbstractKeyInSessionCryptFactory<T extends IClusterable>

    • Method Detail

      • newCrypt

        public ICrypt newCrypt()
        Creates a new crypt for the current user session. If no user session is available, a new one is created.
        Specified by:
        newCrypt in interface ICryptFactory
        Returns:
      • generateKey

        protected abstract T generateKey​(Session session)
        Generates the secret key for a new crypt.
        Parameters:
        session - the current user session where crypt will be stored
        Returns:
        the secret key for a new crypt