Corrected toString output (using "username" instead of "principal")

This commit is contained in:
Luke Taylor 2008-02-15 17:15:20 +00:00
parent 9372f6175b
commit da90b81e16
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ public abstract class AbstractAuthenticationToken implements Authentication {
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append(super.toString()).append(": ");
sb.append("Username: ").append(this.getPrincipal()).append("; ");
sb.append("Principal: ").append(this.getPrincipal()).append("; ");
sb.append("Password: [PROTECTED]; ");
sb.append("Authenticated: ").append(this.isAuthenticated()).append("; ");
sb.append("Details: ").append(this.getDetails()).append("; ");