Explicit Boundary Controls for Finite Diffusion Process