/**
  * Compute expiration date using configured timeouts.
  *
  * @param ticket
  * @return
  */
 public DateTime getExpirationDate(Authorization authorization) {
   return getExpirationDate(authorization.getCreatedDate());
 }
 /**
  * Delete the {@link Authorization}.
  *
  * @param authorization
  */
 public void delete(Authorization authorization) {
   if (authorization == null) return;
   authorizationRepository.delete(authorization.getId());
   eventBus.post(new AuthorizationDeletedEvent(authorization));
 }