Class MutableNameRewriter

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

public final class MutableNameRewriter extends Object implements org.wildfly.security.auth.server.NameRewriter
A delegating name rewriter with a mutable delegation target.
Author:
David M. Lloyd
  • Field Summary

    Fields inherited from interface org.wildfly.security.auth.server.NameRewriter

    IDENTITY_REWRITER
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct a new instance with the identity rewriter.
    MutableNameRewriter(org.wildfly.security.auth.server.NameRewriter target)
    Construct a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    rewriteName(String original)
     
    void
    setTarget(org.wildfly.security.auth.server.NameRewriter target)
    Set the target rewriter.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.wildfly.security.auth.server.NameRewriter

    asPrincipalRewriter
  • Constructor Details

    • MutableNameRewriter

      public MutableNameRewriter(org.wildfly.security.auth.server.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 org.wildfly.security.auth.server.NameRewriter
    • setTarget

      public void setTarget(org.wildfly.security.auth.server.NameRewriter target)
      Set the target rewriter.
      Parameters:
      target - the target rewriter (not null)