/** * Creates a new denied AuthorizationResult with the specified explanation. * * @param explanation for why it was denied * @return a new denied AuthorizationResult with the specified explanation * @throws IllegalArgumentException if explanation is null */ public static AuthorizationResult denied(String explanation) { return new AuthorizationResult(Result.Denied, explanation); } }