public static ContentCryptoMaterial wrap(
            SecretKey cek, byte[] iv,
            ContentCryptoScheme contentCryptoScheme,
            Provider provider,
            SecuredCEK cekSecured) {
        return new ContentCryptoMaterial(
                cekSecured.getMaterialDescription(),
                cekSecured.getEncrypted(),
                cekSecured.getKeyWrapAlgorithm(),
                contentCryptoScheme.createCipherLite
                    (cek, iv, Cipher.ENCRYPT_MODE, provider));
    }
public static ContentCryptoMaterial wrap ( SecretKey cek , byte [ ] iv , ContentCryptoScheme contentCryptoScheme , Provider provider , SecuredCEK cekSecured ) { return new ContentCryptoMaterial ( cekSecured . getMaterialDescription ( ) , cekSecured . getEncrypted ( ) , cekSecured . getKeyWrapAlgorithm ( ) , contentCryptoScheme . createCipherLite ( cek , iv , Cipher . ENCRYPT_MODE , provider ) ) ; }
Returns a new instance of <code>ContentCryptoMaterial</code> by wrapping
the input parameters, including the already secured CEK. No network calls
are involved.