Examples of generateVersionKey()


Examples of org.hive2hive.core.security.HybridEncryptedContent.generateVersionKey()

      KeyPair protectionKeys = context.consumeProtectionKeys();

      logger.trace("Encrypting meta file of file '{}' in a hybrid manner.", context.getFile().getName());
      HybridEncryptedContent encrypted = H2HEncryptionUtil.encryptHybrid(metaFile, metaFile.getId());
      encrypted.setBasedOnKey(metaFile.getVersionKey());
      encrypted.generateVersionKey();

      Parameters parameters = new Parameters()
          .setLocationKey(H2HEncryptionUtil.key2String(metaFile.getId()))
          .setContentKey(H2HConstants.META_FILE).setVersionKey(encrypted.getVersionKey())
          .setData(encrypted).setProtectionKeys(protectionKeys).setTTL(metaFile.getTimeToLive());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.