Class MutableNameRewriter

java.lang.Object
org.wildfly.security.auth.util.MutableNameRewriter
All Implemented Interfaces:
NameRewriter

public final class MutableNameRewriter extends Object implements NameRewriter
A delegating name rewriter with a mutable delegation target.
Author:
David M. Lloyd
  • Constructor Details

    • MutableNameRewriter

      public MutableNameRewriter(NameRewriter target)
      Construct a new instance.
      Parameters:
      target - the target rewriter (not null)
    • MutableNameRewriter

      public MutableNameRewriter()
      Construct a new instance with the identity rewriter.
  • Method Details

    • rewriteName

      public String rewriteName(String original)
      Specified by:
      rewriteName in interface NameRewriter
    • setTarget

      public void setTarget(NameRewriter target)
      Set the target rewriter.
      Parameters:
      target - the target rewriter (not null)