SEC-2418: Minor fix to toString method in LdapUserDetailsImpl
This commit is contained in:
parent
0b996c669f
commit
c6a534cad8
|
@ -133,7 +133,7 @@ public class LdapUserDetailsImpl implements LdapUserDetails, PasswordPolicyData
|
||||||
sb.append("CredentialsNonExpired: ").append(this.credentialsNonExpired).append("; ");
|
sb.append("CredentialsNonExpired: ").append(this.credentialsNonExpired).append("; ");
|
||||||
sb.append("AccountNonLocked: ").append(this.accountNonLocked).append("; ");
|
sb.append("AccountNonLocked: ").append(this.accountNonLocked).append("; ");
|
||||||
|
|
||||||
if (this.getAuthorities() != null) {
|
if (this.getAuthorities() != null && !this.getAuthorities().isEmpty()) {
|
||||||
sb.append("Granted Authorities: ");
|
sb.append("Granted Authorities: ");
|
||||||
boolean first = true;
|
boolean first = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue