super(); if (username == null) { throw new IllegalArgumentException("User name may not be null"); } this.username = username;
if (o == null) return false; if (this == o) return true; if (o instanceof BasicUserPrincipal) { BasicUserPrincipal that = (BasicUserPrincipal) o; if (LangUtils.equals(this.username, that.username)) { return true; } } return false;
return this.username;
int hash = LangUtils.HASH_SEED; hash = LangUtils.hashCode(hash, this.username); return hash;
StringBuilder buffer = new StringBuilder(); buffer.append("[principal: "); buffer.append(this.username); buffer.append("]"); return buffer.toString();