Package org.wildfly.security.auth.server
Class MechanismRealmConfiguration
- java.lang.Object
- 
- org.wildfly.security.auth.server.MechanismRealmConfiguration
 
- 
 public final class MechanismRealmConfiguration extends Object A configuration for a single mechanism realm.- Author:
- David M. Lloyd
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classMechanismRealmConfiguration.BuilderA builder for mechanism realm configuration.
 - 
Field SummaryFields Modifier and Type Field Description private Function<Principal,Principal>finalRewriterstatic MechanismRealmConfigurationNO_REALMA realm configuration for no particular realm, which does no additional rewriting.private Function<Principal,Principal>postRealmRewriterprivate Function<Principal,Principal>preRealmRewriterprivate RealmMapperrealmMapperprivate StringrealmName
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MechanismRealmConfiguration.Builderbuilder()Obtain a newMechanismRealmConfiguration.Buildercapable of building aMechanismRealmConfiguration.Function<Principal,Principal>getFinalRewriter()Get the final rewriter for this mechanism realm.Function<Principal,Principal>getPostRealmRewriter()Get the post-realm rewriter for this mechanism realm.Function<Principal,Principal>getPreRealmRewriter()Get the pre-realm rewriter for this mechanism realm.RealmMappergetRealmMapper()Get the realm mapper for this mechanism realm.StringgetRealmName()Get the mechanism realm name.
 
- 
- 
- 
Field Detail- 
realmNameprivate final String realmName 
 - 
realmMapperprivate final RealmMapper realmMapper 
 - 
NO_REALMpublic static final MechanismRealmConfiguration NO_REALM A realm configuration for no particular realm, which does no additional rewriting.
 
- 
 - 
Constructor Detail- 
MechanismRealmConfigurationMechanismRealmConfiguration(String realmName, Function<Principal,Principal> preRealmRewriter, Function<Principal,Principal> postRealmRewriter, Function<Principal,Principal> finalRewriter, RealmMapper realmMapper) Construct a new instance.- Parameters:
- realmName- the name of this realm (may not be- null)
- preRealmRewriter- the pre-realm rewriter to apply (may not be- null)
- postRealmRewriter- the post-realm rewriter to apply (may not be- null)
- finalRewriter- the final rewriter to apply (may not be- null)
- realmMapper- the realm mapper to use
 
 
- 
 - 
Method Detail- 
getRealmNamepublic String getRealmName() Get the mechanism realm name.- Returns:
- the mechanism realm name (not null)
 
 - 
getPreRealmRewriterpublic Function<Principal,Principal> getPreRealmRewriter() Get the pre-realm rewriter for this mechanism realm.- Returns:
- the pre-realm rewriter for this mechanism realm (not null)
 
 - 
getPostRealmRewriterpublic Function<Principal,Principal> getPostRealmRewriter() Get the post-realm rewriter for this mechanism realm.- Returns:
- the post-realm rewriter for this mechanism realm (not null)
 
 - 
getFinalRewriterpublic Function<Principal,Principal> getFinalRewriter() Get the final rewriter for this mechanism realm.- Returns:
- the final rewriter for this mechanism realm (not null)
 
 - 
getRealmMapperpublic RealmMapper getRealmMapper() Get the realm mapper for this mechanism realm.- Returns:
- the realm mapper for this mechanism realm, or nullto use the default
 
 - 
builderpublic static MechanismRealmConfiguration.Builder builder() Obtain a newMechanismRealmConfiguration.Buildercapable of building aMechanismRealmConfiguration.- Returns:
- a new MechanismRealmConfiguration.Buildercapable of building aMechanismRealmConfiguration.
 
 
- 
 
-