Security: Using a Gate
Ticket me = MyTicketFactory.create();

try {

  HomeBankingPermit permit =
  HomeBanking.open_for_tax_reporting(me);

} catch (RoleViolationException e) {

 // error handling

 ...

}

A Gate decides whether to grant an instance of a permit to a caller or to deny access by throwing an exception.

Return to Tracks