提交 e86ab720 编写于 作者: J Jesse Glick

Suppressing some known-good instances of an idiom otherwise warned about by...

Suppressing some known-good instances of an idiom otherwise warned about by NetBeans plugin for Jenkins.
上级 eff5635b
......@@ -93,6 +93,7 @@ public class BasicAuthenticationFilter implements Filter {
servletContext = filterConfig.getServletContext();
}
@SuppressWarnings("ACL.impersonate")
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse rsp = (HttpServletResponse) response;
......
......@@ -174,6 +174,7 @@ public abstract class FederatedLoginService implements ExtensionPoint {
* to the caller of your "doXyz" method, it will either render an error page or initiate
* a user registration session (provided that {@link SecurityRealm} supports that.)
*/
@SuppressWarnings("ACL.impersonate")
public User signin() throws UnclaimedIdentityException {
User u = locateUser();
if (u!=null) {
......
......@@ -233,6 +233,7 @@ public class HudsonPrivateSecurityRealm extends AbstractPasswordBasedSecurityRea
/**
* Lets the current user silently login as the given user and report back accordingly.
*/
@SuppressWarnings("ACL.impersonate")
private void loginAndTakeBack(StaplerRequest req, StaplerResponse rsp, User u) throws ServletException, IOException {
// ... and let him login
Authentication a = new UsernamePasswordAuthenticationToken(u.getId(),req.getParameter("password1"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册