Package org.wildfly.security.auth.util
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
 
- 
- 
Field SummaryFields Modifier and Type Field Description private booleanupperCase- 
Fields inherited from interface org.wildfly.security.auth.server.NameRewriterIDENTITY_REWRITER
 
- 
 - 
Constructor SummaryConstructors Constructor Description CaseNameRewriter()Construct a new instance which transforms to upper case.CaseNameRewriter(boolean upperCase)Construct a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringrewriteName(String original)Rewrite a name.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.wildfly.security.auth.server.NameRewriterasPrincipalRewriter
 
- 
 
- 
- 
- 
Constructor Detail- 
CaseNameRewriterpublic CaseNameRewriter() Construct a new instance which transforms to upper case.
 - 
CaseNameRewriterpublic 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 Detail- 
rewriteNamepublic String rewriteName(String original) Rewrite a name.- Specified by:
- rewriteNamein interface- NameRewriter
- Parameters:
- original- the original name
- Returns:
- the rewritten name
 
 
- 
 
-