Package com.amazonaws.services.kms.model

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


        // Randomly generate the IV
        final byte[] iv = new byte[contentCryptoScheme.getIVLengthInBytes()];
        cryptoScheme.getSecureRandom().nextBytes(iv);

        if (kekMaterials.isKMSEnabled()) {
            GenerateDataKeyRequest keyGenReq = new GenerateDataKeyRequest()
                .withEncryptionContext(kekMaterials.getMaterialsDescription())
                .withKeyId(kekMaterials.getCustomerMasterKeyId())
                .withKeySpec(contentCryptoScheme.getKeySpec());
            keyGenReq
                .withGeneralProgressListener(req.getGeneralProgressListener())
                .withRequestMetricCollector(req.getRequestMetricCollector())
                ;
            GenerateDataKeyResult keyGenRes = kms.generateDataKey(keyGenReq);
            final SecretKey cek =
View Full Code Here

TOP

Related Classes of com.amazonaws.services.kms.model.GenerateDataKeyRequest

Copyright © 2018 www.massapicom. 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.