Class CaseNameRewriter

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

public final class CaseNameRewriter extends Object implements NameRewriter
A case name rewriter adjusts a principal to upper or lower case.
Author:
Sonia Zaldana Calles
  • Constructor Details

    • CaseNameRewriter

      public CaseNameRewriter()
      Construct a new instance which transforms to upper case.
    • CaseNameRewriter

      public CaseNameRewriter(boolean upperCase)
      Construct a new instance.
      Parameters:
      upperCase - true if the principal should be converted to upper case, false if the principal should be converted to lower case.
  • Method Details

    • rewriteName

      public String rewriteName(String original)
      Rewrite a name.
      Specified by:
      rewriteName in interface NameRewriter
      Parameters:
      original - the original name
      Returns:
      the rewritten name