Package org.wildfly.security.auth.server
Class MechanismRealmConfiguration.Builder
java.lang.Object
org.wildfly.security.auth.server.MechanismRealmConfiguration.Builder
- Enclosing class:
- MechanismRealmConfiguration
A builder for mechanism realm configuration.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a new instance.setFinalRewriter(Function<Principal, Principal> finalRewriter) Set a final principal transformer to apply for this mechanism realm.setPostRealmRewriter(Function<Principal, Principal> postRealmRewriter) Set a principal transformer to apply after the realm is selected.setPreRealmRewriter(Function<Principal, Principal> preRealmRewriter) Set a principal transformer to apply before the realm is selected.setRealmMapper(RealmMapper realmMapper) Sets a realm mapper to be used by the mechanism.setRealmName(String realmName) Sets a name of the realm to be presented by the mechanism.
-
Method Details
-
setRealmName
Sets a name of the realm to be presented by the mechanism.- Parameters:
realmName- a name of the realm to be presented by the mechanism- Returns:
- this builder
-
setPreRealmRewriter
public MechanismRealmConfiguration.Builder setPreRealmRewriter(Function<Principal, Principal> preRealmRewriter) Set a principal transformer to apply before the realm is selected.- Parameters:
preRealmRewriter- a principal transformer to apply before the realm is selected- Returns:
- this builder
-
setPostRealmRewriter
public MechanismRealmConfiguration.Builder setPostRealmRewriter(Function<Principal, Principal> postRealmRewriter) Set a principal transformer to apply after the realm is selected. Any previously set credential source will be overwritten.- Parameters:
postRealmRewriter- a principal transformer to apply after the realm is selected- Returns:
- this builder
-
setFinalRewriter
public MechanismRealmConfiguration.Builder setFinalRewriter(Function<Principal, Principal> finalRewriter) Set a final principal transformer to apply for this mechanism realm. Any previously set credential source will be overwritten.- Parameters:
finalRewriter- a final principal transformer to apply for this mechanism realm- Returns:
- this builder
-
setRealmMapper
Sets a realm mapper to be used by the mechanism. Any previously set credential source will be overwritten.- Parameters:
realmMapper- a realm mapper to be used by the mechanism- Returns:
- this builder
-
build
Build a new instance.- Returns:
- a new instance
-