Class CaseNameRewriter

java.lang.Object
org.infinispan.security.mappers.CaseNameRewriter
All Implemented Interfaces:
NameRewriter

public final class CaseNameRewriter extends Object implements NameRewriter
A rewriter which can convert a name to uppercase or lowercase
  • Constructor Details

    • CaseNameRewriter

      public CaseNameRewriter()
    • CaseNameRewriter

      public CaseNameRewriter(boolean upperCase)
  • Method Details

    • rewriteName

      public String rewriteName(String original)
      Description copied from interface: NameRewriter
      Rewrite a name. Must not return null.
      Specified by:
      rewriteName in interface NameRewriter
      Parameters:
      original - the original name (must not be null)
      Returns:
      the rewritten name, or null if the name is invalid