Package org.wildfly.security.auth.util
Class CaseNameRewriter
java.lang.Object
org.wildfly.security.auth.util.CaseNameRewriter
- All Implemented Interfaces:
NameRewriter
A case name rewriter adjusts a principal to upper or lower case.
- Author:
- Sonia Zaldana Calles
-
Field Summary
Fields inherited from interface org.wildfly.security.auth.server.NameRewriter
IDENTITY_REWRITER -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance which transforms to upper case.CaseNameRewriter(boolean upperCase) Construct a new instance. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.auth.server.NameRewriter
asPrincipalRewriter
-
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-trueif the principal should be converted to upper case,falseif the principal should be converted to lower case.
-
-
Method Details
-
rewriteName
Rewrite a name.- Specified by:
rewriteNamein interfaceNameRewriter- Parameters:
original- the original name- Returns:
- the rewritten name
-