WASHINGTON (AP) — The Justice Department has issued an internal legal opinion supporting the legality of Matthew Whitaker’s appointment as acting attorney general.

The Office of Legal Counsel’s opinion is aimed at addressing concerns from Democrats and even some Republicans that President Donald Trump violated the law by naming Whitaker over Deputy Attorney General Rod Rosenstein.

READ MORE: Cody Boothe, 26, Charged In April Triple Shooting In Southeast Baltimore

Whitaker had been chief of staff to now-ousted Attorney General Jeff Sessions — a job that didn’t require Senate confirmation.

Maryland To File Challenge Over Appointment Of Acting AG

The state of Maryland has challenged Whitaker’s appointment.

READ MORE: Mount Airy Man Clifton Beck Found After Days Missing In Grand Canyon

A Justice Department official says the White House contacted the Office of Legal Counsel for advice — before Sessions was replaced — about options in the event of a vacancy.

The opinion doesn’t address the question of whether Whitaker should step aside from overseeing the special counsel’s Russia investigation.

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)

MORE NEWS: Baltimore Woman Jamerria Hall, Accused Of Killing Her Two Children, Found Incompetent To Stand Trial

Follow @WJZ on Twitter and like WJZ-TV | CBS Baltimore on Facebook