@Override
    public String getName() {
        return this.username;
    }
Basic username based principal representation.

@since 4.0
httpclient5/src/main/java/org/apache/hc/client5/http/auth/BasicUserPrincipal.java