Package org.infinispan.security.mappers
Class CaseNameRewriter
java.lang.Object
org.infinispan.security.mappers.CaseNameRewriter
- All Implemented Interfaces:
NameRewriter
A rewriter which can convert a name to uppercase or lowercase
-
Field Summary
Fields inherited from interface org.infinispan.security.mappers.NameRewriter
IDENTITY_REWRITER
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CaseNameRewriter
public CaseNameRewriter() -
CaseNameRewriter
public CaseNameRewriter(boolean upperCase)
-
-
Method Details
-
rewriteName
Description copied from interface:NameRewriter
Rewrite a name. Must not returnnull
.- Specified by:
rewriteName
in interfaceNameRewriter
- Parameters:
original
- the original name (must not benull
)- Returns:
- the rewritten name, or
null
if the name is invalid
-