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 Summary
Nested Classes Modifier and Type Class Description static class
MechanismRealmConfiguration.Builder
A builder for mechanism realm configuration.
-
Field Summary
Fields Modifier and Type Field Description private Function<Principal,Principal>
finalRewriter
static MechanismRealmConfiguration
NO_REALM
A realm configuration for no particular realm, which does no additional rewriting.private Function<Principal,Principal>
postRealmRewriter
private Function<Principal,Principal>
preRealmRewriter
private RealmMapper
realmMapper
private String
realmName
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MechanismRealmConfiguration.Builder
builder()
Obtain a newMechanismRealmConfiguration.Builder
capable 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.RealmMapper
getRealmMapper()
Get the realm mapper for this mechanism realm.String
getRealmName()
Get the mechanism realm name.
-
-
-
Field Detail
-
realmName
private final String realmName
-
realmMapper
private final RealmMapper realmMapper
-
NO_REALM
public static final MechanismRealmConfiguration NO_REALM
A realm configuration for no particular realm, which does no additional rewriting.
-
-
Constructor Detail
-
MechanismRealmConfiguration
MechanismRealmConfiguration(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 benull
)preRealmRewriter
- the pre-realm rewriter to apply (may not benull
)postRealmRewriter
- the post-realm rewriter to apply (may not benull
)finalRewriter
- the final rewriter to apply (may not benull
)realmMapper
- the realm mapper to use
-
-
Method Detail
-
getRealmName
public String getRealmName()
Get the mechanism realm name.- Returns:
- the mechanism realm name (not
null
)
-
getPreRealmRewriter
public Function<Principal,Principal> getPreRealmRewriter()
Get the pre-realm rewriter for this mechanism realm.- Returns:
- the pre-realm rewriter for this mechanism realm (not
null
)
-
getPostRealmRewriter
public Function<Principal,Principal> getPostRealmRewriter()
Get the post-realm rewriter for this mechanism realm.- Returns:
- the post-realm rewriter for this mechanism realm (not
null
)
-
getFinalRewriter
public Function<Principal,Principal> getFinalRewriter()
Get the final rewriter for this mechanism realm.- Returns:
- the final rewriter for this mechanism realm (not
null
)
-
getRealmMapper
public RealmMapper getRealmMapper()
Get the realm mapper for this mechanism realm.- Returns:
- the realm mapper for this mechanism realm, or
null
to use the default
-
builder
public static MechanismRealmConfiguration.Builder builder()
Obtain a newMechanismRealmConfiguration.Builder
capable of building aMechanismRealmConfiguration
.- Returns:
- a new
MechanismRealmConfiguration.Builder
capable of building aMechanismRealmConfiguration
.
-
-