Examples of GenerateDataKeyResult


Examples of com.amazonaws.services.kms.model.GenerateDataKeyResult

                .withKeySpec(contentCryptoScheme.getKeySpec());
            keyGenReq
                .withGeneralProgressListener(req.getGeneralProgressListener())
                .withRequestMetricCollector(req.getRequestMetricCollector())
                ;
            GenerateDataKeyResult keyGenRes = kms.generateDataKey(keyGenReq);
            final SecretKey cek =
                new SecretKeySpec(copyAllBytesFrom(keyGenRes.getPlaintext()),
                        contentCryptoScheme.getKeyGeneratorAlgorithm());
            byte[] keyBlob = copyAllBytesFrom(keyGenRes.getCiphertextBlob());
            return ContentCryptoMaterial.wrap(cek, iv,
                    kekMaterials, contentCryptoScheme, provider,
                    new KMSSecuredCEK(keyBlob));
        } else {
            // Generate a one-time use symmetric key and initialize a cipher to encrypt object data
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.