private ContentCryptoMaterial newContentCryptoMaterial ( EncryptionMaterialsProvider kekMaterialProvider , Provider provider , AmazonWebServiceRequest req ) { EncryptionMaterials kekMaterials = kekMaterialProvider . getEncryptionMaterials ( ) ; if ( kekMaterials == null ) throw new SdkClientException ( "No material available from the encryption material provider" ) ; return buildContentCryptoMaterial ( kekMaterials , provider , req ) ; }
Returns a non - null content encryption material generated with the given kek material and security providers .