/** * {@inheritDoc} */ @Override public void logout() throws ServletException { context.getAuthenticator().logout(this); }
public boolean authenticate(HttpServletResponse response) throws IOException, ServletException { if (context != null && context.getAuthenticator() != null) { return context.getAuthenticator().authenticate(this, response); } else { throw new ServletException(MESSAGES.noAuthenticator()); } }
/** * {@inheritDoc} */ @Override public void logout() throws ServletException { context.getAuthenticator().logout(this); }
public boolean authenticate(HttpServletResponse response) throws IOException, ServletException { if (context != null && context.getAuthenticator() != null) { return context.getAuthenticator().authenticate(this, response); } else { throw new ServletException(sm.getString("coyoteRequest.noAuthenticator")); } }
/** * {@inheritDoc} */ @Override public void logout() throws ServletException { context.getAuthenticator().logout(this); }
/** * {@inheritDoc} */ @Override public void logout() throws ServletException { context.getAuthenticator().logout(this); }
/** * {@inheritDoc} */ @Override public void logout() throws ServletException { context.getAuthenticator().logout(this); }
/** * {@inheritDoc} */ @Override public void logout() throws ServletException { context.getAuthenticator().logout(this); }
public void login(String username, String password) throws ServletException { if (userPrincipal != null) { throw new ServletException(MESSAGES.authenticationFailure()); } if (context != null && context.getAuthenticator() != null) { context.getAuthenticator().login(this, username, password); } else { throw new ServletException(MESSAGES.noAuthenticator()); } if (userPrincipal == null) { throw new ServletException(MESSAGES.authenticationFailure()); } }
public void login(String username, String password) throws ServletException { if (userPrincipal != null) { throw new ServletException(sm.getString("coyoteRequest.authFailed")); } if (context != null && context.getAuthenticator() != null) { context.getAuthenticator().login(this, username, password); } else { throw new ServletException(sm.getString("coyoteRequest.noAuthenticator")); } if (userPrincipal == null) { throw new ServletException(sm.getString("coyoteRequest.authFailed")); } }
/** * @throws IOException If an I/O error occurs * @throws IllegalStateException If the response has been committed * @throws ServletException If the caller is responsible for handling the * error and the container has NOT set the HTTP response code etc. */ @Override public boolean authenticate(HttpServletResponse response) throws IOException, ServletException { if (response.isCommitted()) { throw new IllegalStateException( sm.getString("coyoteRequest.authenticate.ise")); } return context.getAuthenticator().authenticate(this, response); }
/** * @throws IOException If an I/O error occurs * @throws IllegalStateException If the response has been committed * @throws ServletException If the caller is responsible for handling the * error and the container has NOT set the HTTP response code etc. */ @Override public boolean authenticate(HttpServletResponse response) throws IOException, ServletException { if (response.isCommitted()) { throw new IllegalStateException( sm.getString("coyoteRequest.authenticate.ise")); } return context.getAuthenticator().authenticate(this, response); }
/** * {@inheritDoc} */ @Override public void logout() throws ServletException { getContext().getAuthenticator().logout(this); }
/** * {@inheritDoc} */ @Override public boolean authenticate(HttpServletResponse response) throws IOException, ServletException { if (response.isCommitted()) { throw new IllegalStateException( sm.getString("coyoteRequest.authenticate.ise")); } return getContext().getAuthenticator().authenticate(this, response); }
/** * {@inheritDoc} */ @Override public void logout() throws ServletException { getContext().getAuthenticator().logout(this); }
/** * {@inheritDoc} */ @Override public boolean authenticate(HttpServletResponse response) throws IOException, ServletException { if (response.isCommitted()) { throw new IllegalStateException( sm.getString("coyoteRequest.authenticate.ise")); } return getContext().getAuthenticator().authenticate(this, response); }
/** * {@inheritDoc} */ @Override public void login(String username, String password) throws ServletException { if (getAuthType() != null || getRemoteUser() != null || getUserPrincipal() != null) { throw new ServletException( sm.getString("coyoteRequest.alreadyAuthenticated")); } if (context.getAuthenticator() == null) { throw new ServletException("no authenticator"); } context.getAuthenticator().login(username, password, this); }
/** * {@inheritDoc} */ @Override public void login(String username, String password) throws ServletException { if (getAuthType() != null || getRemoteUser() != null || getUserPrincipal() != null) { throw new ServletException( sm.getString("coyoteRequest.alreadyAuthenticated")); } if (context.getAuthenticator() == null) { throw new ServletException("no authenticator"); } context.getAuthenticator().login(username, password, this); }
/** * {@inheritDoc} */ @Override public void login(String username, String password) throws ServletException { if (getAuthType() != null || getRemoteUser() != null || getUserPrincipal() != null) { throw new ServletException( sm.getString("coyoteRequest.alreadyAuthenticated")); } getContext().getAuthenticator().login(username, password, this); }
/** * {@inheritDoc} */ @Override public void login(String username, String password) throws ServletException { if (getAuthType() != null || getRemoteUser() != null || getUserPrincipal() != null) { throw new ServletException( sm.getString("coyoteRequest.alreadyAuthenticated")); } getContext().getAuthenticator().login(username, password, this); }