Package org.wildfly.security.auth.server
Class MechanismConfiguration
java.lang.Object
org.wildfly.security.auth.server.MechanismConfiguration
A configuration that applies to an authentication mechanism.
- Author:
- David M. Lloyd
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for authentication mechanism configuration. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MechanismConfigurationAn empty mechanism configuration.. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Obtain a newMechanismConfiguration.Buildercapable of building aMechanismConfiguration.Get the final rewriter for this mechanism realm.getMechanismRealmConfiguration(String realmName) Get the mechanism realm configuration for the offered realm with the given name.Get the collection of mechanism realm names, in order.Get the post-realm rewriter for this mechanism realm.Get the pre-realm rewriter for this mechanism realm.Get the realm mapper.Get the server credential source.
-
Field Details
-
EMPTY
An empty mechanism configuration..
-
-
Method Details
-
getPreRealmRewriter
Get the pre-realm rewriter for this mechanism realm.- Returns:
- the pre-realm rewriter for this mechanism realm, or
nullto use the default
-
getPostRealmRewriter
Get the post-realm rewriter for this mechanism realm.- Returns:
- the post-realm rewriter for this mechanism realm, or
nullto use the default
-
getFinalRewriter
Get the final rewriter for this mechanism realm.- Returns:
- the final rewriter for this mechanism realm, or
nullto use the default
-
getRealmMapper
Get the realm mapper.- Returns:
- the realm mapper, or
nullto use the default
-
getMechanismRealmNames
Get the collection of mechanism realm names, in order. If no realms are configured, the collection will be empty.- Returns:
- the mechanism realm names to offer (may be empty; not
null)
-
getServerCredentialSource
Get the server credential source.- Returns:
- the server credential source
-
getMechanismRealmConfiguration
Get the mechanism realm configuration for the offered realm with the given name. If the realm name is not known,nullis returned. If the realm name is equal to one of the names returned bygetMechanismRealmNames()on this same instance then it is guaranteed thatnullis never returned.- Parameters:
realmName- the realm name- Returns:
- the realm configuration, or
nullif the realm name is unknown
-
builder
Obtain a newMechanismConfiguration.Buildercapable of building aMechanismConfiguration.- Returns:
- a new
MechanismConfiguration.Buildercapable of building aMechanismConfiguration.
-