"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/main/java/org/acegisecurity/acls/sid/PrincipalSid.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.

PrincipalSid.java  (jenkins-jenkins-2.280):PrincipalSid.java  (jenkins-jenkins-2.281)
skipping to change at line 40 skipping to change at line 40
public class PrincipalSid implements Sid { public class PrincipalSid implements Sid {
private final String principal; private final String principal;
public PrincipalSid(String principal) { public PrincipalSid(String principal) {
this.principal = principal; this.principal = principal;
} }
/** /**
* @since TODO * @since 2.266
*/ */
public PrincipalSid(Authentication a) { public PrincipalSid(Authentication a) {
Object p = a.getPrincipal(); Object p = a.getPrincipal();
this.principal = p instanceof UserDetails ? ((UserDetails) p).getUsernam e() : p.toString(); this.principal = p instanceof UserDetails ? ((UserDetails) p).getUsernam e() : p.toString();
} }
/** /**
* @deprecated use {@link #PrincipalSid(Authentication)} * @deprecated use {@link #PrincipalSid(Authentication)}
*/ */
@Deprecated @Deprecated
 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)