/** * @see org.apache.wicket.jmx.ApplicationSettingsMBean#getAccessDeniedPage() */ @Override public String getAccessDeniedPage() { return Classes.name(application.getApplicationSettings().getAccessDeniedPage()); }
/** * Delegates authentication. Subclasses should first try there custom authentication scheme * before letting super handle the call. Subclasses should either return a boolean value (see * {@link #handleBasicAuthentication(WebRequest, WebResponse, String, String)} ) if processing * should continue or throw an exception. * * @param request * @param response * @param scheme * the authentication scheme like "Basic" or "Digest" * @param param * the parameters after the scheme from the header * @throws LoginException * if the user could not be logged in. * @throws RestartResponseAtInterceptPageException * to an {@link AccessDeniedPage} if the scheme is not supported */ protected void handleAuthentication(WebRequest request, WebResponse response, String scheme, String param) throws LoginException { if (!handleBasicAuthentication(request, response, scheme, param)) return; log.error("Unsupported Http authentication type: " + scheme); throw new RestartResponseAtInterceptPageException(Application.get() .getApplicationSettings() .getAccessDeniedPage()); }