Examples of EncryptionHandler


Examples of com.elasticinbox.core.blob.encryption.EncryptionHandler

    this.keyspace = keyspace;
   
    // Create BlobStorage instance with AES encryption and Deflate compression
    CompressionHandler compressionHandler =
        Configurator.isBlobStoreCompressionEnabled() ? new DeflateCompressionHandler() : null;
    EncryptionHandler encryptionHandler =
        Configurator.isBlobStoreEncryptionEnabled() ? new AESEncryptionHandler() : null;

    this.blobStorage = new BlobStorageMediator(compressionHandler, encryptionHandler);
  }
View Full Code Here

Examples of com.elasticinbox.core.blob.encryption.EncryptionHandler

    String keyAlias = blobUri.getEncryptionKey();

    if (keyAlias != null)
    {
      // currently we only support AES encryption, use by default
      EncryptionHandler eh = new AESEncryptionHandler();

      try {
        logger.debug("Decrypting object {} with key {}", uri, keyAlias);

        byte[] iv = getCipherIVFromBlobName(BlobUtils.relativize(uri.getPath()));

        in = eh.decrypt(CloudStoreProxy.read(uri),
            Configurator.getEncryptionKey(keyAlias), iv);
      } catch (GeneralSecurityException gse) {
        throw new IOException("Unable to decrypt message blob: ", gse);
      }
    } else {
View Full Code Here

Examples of net.glowstone.net.pipeline.EncryptionHandler

        updatePipeline("codecs", new CodecsHandler(proto));
        super.setProtocol(proto);
    }

    public void enableEncryption(SecretKey sharedSecret) {
        updatePipeline("encryption", new EncryptionHandler(sharedSecret));
    }
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.