
@FunctionalInterface public interface MechanismConfigurationSelector
MechanismConfiguration to use based on information know about the current authentication
attempt.| Modifier and Type | Method and Description |
|---|---|
static MechanismConfigurationSelector |
aggregate(MechanismConfigurationSelector... configurationSelectors)
Create a
MechanismConfigurationSelector that is an aggregation of other selectors, when called the selectors will be called in order and the first
MechanismConfiguration returned will be used. |
static MechanismConfigurationSelector |
constantSelector(MechanismConfiguration mechanismConfiguration)
Create a constant
MechanismConfigurationSelector which will always return the same MechanismConfiguration
instance. |
static MechanismConfigurationSelector |
predicateSelector(Predicate<MechanismInformation> predicate,
MechanismConfiguration mechanismConfiguration)
Create a simple
MechanismConfigurationSelector that is paired with a Predicate to
test if the configuration should be used for the supplied information. |
MechanismConfiguration |
selectConfiguration(MechanismInformation mechanismInformation)
Select the
MechanismConfiguration to use for the current authentication attempt. |
MechanismConfiguration selectConfiguration(MechanismInformation mechanismInformation)
MechanismConfiguration to use for the current authentication attempt.mechanismInformation - information about the current authentication attempt.MechanismConfiguration to use for the current authentication attempt.static MechanismConfigurationSelector predicateSelector(Predicate<MechanismInformation> predicate, MechanismConfiguration mechanismConfiguration)
MechanismConfigurationSelector that is paired with a Predicate to
test if the configuration should be used for the supplied information.predicate - the predicate to test the MechanismInformationmechanismConfiguration - the MechanismConfiguration to return if the test passes.MechanismConfigurationSelector backed by a Predicate to test if the configuration should be returned.static MechanismConfigurationSelector aggregate(MechanismConfigurationSelector... configurationSelectors)
MechanismConfigurationSelector that is an aggregation of other selectors, when called the selectors will be called in order and the first
MechanismConfiguration returned will be used.configurationSelectors - the MechanismConfigurationSelector instances to aggregate.MechanismConfigurationSelector that is an aggregation of the supplied selectors.static MechanismConfigurationSelector constantSelector(MechanismConfiguration mechanismConfiguration)
MechanismConfigurationSelector which will always return the same MechanismConfiguration
instance.mechanismConfiguration - a configuration which will be always returned by created selectorCopyright © 2020 JBoss by Red Hat. All rights reserved.