Clerk of the Closet

Noun

 * 1)  an ecclesiastic privately attending upon a monarch, a royal confessor.