It is by both methods.
Active transport is the movement of a substance across a cell membrane against its concentration gradient (from low to high concentration). In all cells, this is usually concerned with accumulating high concentrations of molecules that the cell needs, such as ions, glucose and amino acids. It uses energy (ATP).
Passive transport means biochemicals and other atomic or molecular substances across membranes. Unlike active transport, this process does not involve chemical energy and the molecules more from a high concentration to a lower one.