"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/main/java/jenkins/security/BasicHeaderAuthenticator.java" between
jenkins-jenkins-2.280.tar.gz and jenkins-jenkins-2.281.tar.gz

About: Jenkins is a automation server (written in Java) which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software (for e.g. as Continuous Integration and Continuous Delivery server). Weekly release.

BasicHeaderAuthenticator.java  (jenkins-jenkins-2.280):BasicHeaderAuthenticator.java  (jenkins-jenkins-2.281)
skipping to change at line 38 skipping to change at line 38
* When null is returned, other authenticators will get a chance to process the request. * When null is returned, other authenticators will get a chance to process the request.
* This is necessary because Jenkins accepts both real password as well as A PI tokens for the password. * This is necessary because Jenkins accepts both real password as well as A PI tokens for the password.
* *
* <p> * <p>
* In contrast, when an exception is thrown the request processing will fail * In contrast, when an exception is thrown the request processing will fail
* immediately without providing a chance for other authenticators to proces s the request. * immediately without providing a chance for other authenticators to proces s the request.
* *
* <p> * <p>
* When no processor can validate the username/password pair, caller will ma ke * When no processor can validate the username/password pair, caller will ma ke
* the request processing fail. * the request processing fail.
* @since TODO * @since 2.266
*/ */
@CheckForNull @CheckForNull
public Authentication authenticate2(HttpServletRequest req, HttpServletRespo nse rsp, String username, String password) throws IOException, ServletException { public Authentication authenticate2(HttpServletRequest req, HttpServletRespo nse rsp, String username, String password) throws IOException, ServletException {
if (Util.isOverridden(BasicHeaderAuthenticator.class, getClass(), "authe nticate", HttpServletRequest.class, HttpServletResponse.class, String.class, Str ing.class)) { if (Util.isOverridden(BasicHeaderAuthenticator.class, getClass(), "authe nticate", HttpServletRequest.class, HttpServletResponse.class, String.class, Str ing.class)) {
org.acegisecurity.Authentication a = authenticate(req, rsp, username , password); org.acegisecurity.Authentication a = authenticate(req, rsp, username , password);
return a != null ? a.toSpring() : null; return a != null ? a.toSpring() : null;
} else { } else {
throw new AbstractMethodError("implement authenticate2"); throw new AbstractMethodError("implement authenticate2");
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)