Package org.wildfly.security.auth.util
Class MutableNameRewriter
java.lang.Object
org.wildfly.security.auth.util.MutableNameRewriter
- All Implemented Interfaces:
NameRewriter
A delegating name rewriter with a mutable delegation target.
- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from interface org.wildfly.security.auth.server.NameRewriter
IDENTITY_REWRITER -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance with the identity rewriter.MutableNameRewriter(NameRewriter target) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionrewriteName(String original) voidsetTarget(NameRewriter target) Set the target rewriter.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
-
MutableNameRewriter
Construct a new instance.- Parameters:
target- the target rewriter (notnull)
-
MutableNameRewriter
public MutableNameRewriter()Construct a new instance with the identity rewriter.
-
-
Method Details
-
rewriteName
- Specified by:
rewriteNamein interfaceNameRewriter
-
setTarget
Set the target rewriter.- Parameters:
target- the target rewriter (notnull)
-