WASHINGTON — A 26-year-old Milpitas man accused of scaling the White House fence and walking up to its grand south entrance carrying two cans of Mace and a letter to President Donald Trump about “Russian hackers” appeared in federal court Monday.

Related Articles Bond hearing scheduled for Milpitas Man accused of entering White House

‘Troubled’ Milpitas man accused of scaling White House fence Jonathan Tuan Tran faces a maximum of 10 years in prison on one count of entering restricted grounds while carrying a dangerous weapon after being arrested at about 11:38 p.m. Friday. Tran reportedly told the Secret Service officer who stopped him that he had an appointment with Trump, who was in the residence at the time.

Magistrate Robin M. Meriweather released Tran under condition that he report for supervision to the federal court in San Jose, be subject to GPS monitoring, mental health evaluation and, if necessary, treatment. His next hearing in Washington is set for April 13.

Related Articles Unemployment fraud rings are using “complex” schemes

Judge rejects bid to oust Santa Clara County DA from concealed-gun permit corruption case

‘Melrose Place’ actress Amy Locane headed back to prison for fatal crash

Bay Area man apologizes in Italy court for taking officer’s life

4 people stabbed, 1 critically, in Southern California before suspect is captured Prosecutors requested and the defense also agreed that Tran not travel more than 100 miles from his home, stay away from the White House and from the District of Columbia except for his case, and to not possess a firearm, destructive device or dangerous weapon.

Tran’s supervised release under restrictions is not uncommon: a Connecticut man who eventually pleaded guilty to jumping the White House fence draped in a flag in 2015 was released to the custody of his mother as his case proceeded and conditions also were set for the supervised release of a Florida postal worker who landed a gyrocopter at the U.S. Capitol in a 2015 protest before pleading guilty to a charge of flying without a license.

Tran, appearing in an orange jail shirt and pants and answering questions clearly, said he had no job, did not own a home, car or have more than $50,000 in savings or investments, and was appointed his public defender. Tran said he had taken no medication recently that would impair his understanding of the hearing, although when asked if he had any medical condition that would do so, he said, “I don’t believe so.”

Brian Tran, Jonathan’s 19-year-old brother, told CNN that Jonathan had graduated from San Jose State University with an engineering degree and had been recently laid off from an engineering job. Brian, who attends SJSU, also said that his brother was “troubled” over losing the job and had been “living in his car and eating junk food.”

The president on Saturday praised the Secret Service for doing “a fantastic job last night” responding to a “troubled person,” as security experts called the incident the latest warning of ongoing vulnerabilities at the agency’s most visible and sensitive post.

Jonathan Wackrow, a 14-year Secret Service employee who served in former president Barack Obama’s detail, said the incident was a “gut punch” to an agency still recovering from a 2014 incident in which Omar Gonzalez made his way deep into the executive mansion before being tackled by an off-duty agent in the East Room.

Wackrow said in addition to defeating newly installed “pencil-point” spikes atop the fence at the property that are intended to slow down would-be jumpers, Tran’s alleged incursion should have triggered intrusion detection and video surveillance alarms.

Tran also would have “walked by multiple, multiple uniformed division posts at the White House,” Wackrow said.

“All of those things did not react to this individual traversing a significant amount of distance at the White House,” Wackrow said. If failures were not tied to the technical security system, then personnel did not respond properly despite known vulnerabilities, he said.

The Washington Post contributed to this report.