
super(parent, true);
this.rewriter = rewriter;</BUG>
}
String doRewriteUser(final String original) {
<BUG>return rewriter.rewriteName(super.doRewriteUser(original));
</BUG>
}
AuthenticationConfiguration reparent(final AuthenticationConfiguration newParent) {
return new RewriteNameAuthenticationConfiguration(newParent, rewriter);

package org.wildfly.security.auth.client;
import java.util.function.Function;
class RewriteNameAuthenticationConfiguration extends AuthenticationConfiguration {
private final Function<String, String> rewriter;
RewriteNameAuthenticationConfiguration(final AuthenticationConfiguration parent, final Function<String, String> rewriter) {
super(parent);
this.rewriter = rewriter;
}
String doRewriteUser(final String original) {
return rewriter.apply(super.doRewriteUser(original));
}
AuthenticationConfiguration reparent(final AuthenticationConfiguration newParent) {
return new RewriteNameAuthenticationConfiguration(newParent, rewriter);
