question: byte [ ] encryptContentEncryptionKey ( byte [ ] contentEncryptionKey , PublicKey publicKey ) throws EncryptDataException { try { Cipher rsaCipher = Cipher . getInstance ( RSA_ALGORITHM_MODE ) ; rsaCipher . init ( Cipher . ENCRYPT_MODE , publicKey ) ; byte [ ] encryptedData = rsaCipher . doFinal ( contentEncryptionKey ) ; return encryptedData ; } catch ( Exception e ) { throw new EncryptDataException ( "Error while encrypting data " , e ) ; } }
target:  Encrypts a given ContentEncryptionKey with a public key using RSA