Class MultiPredicateAccessPredicate
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.plugin.authn.webauthn.admin.impl.MultiPredicateAccessPredicate
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class MultiPredicateAccessPredicate
extends AbstractIdentifiableInitializableComponent
implements Predicate<ProfileRequestContext>
Access control implementation based on a
List of predicates over a ProfileRequestContext. Iteration
over the predicates terminates when one returns 'false'. If no predicate returns 'false', access is allowed.- Since:
- 1.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<Predicate<ProfileRequestContext>>List of predicates to evaluate. -
Constructor Summary
ConstructorsConstructorDescriptionMultiPredicateAccessPredicate(List<Predicate<ProfileRequestContext>> predicateList) Constructor. -
Method Summary
Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
predicates
@Nonnull @NotEmpty @NotLive @Unmodifiable private final List<Predicate<ProfileRequestContext>> predicatesList of predicates to evaluate.
-
-
Constructor Details
-
MultiPredicateAccessPredicate
public MultiPredicateAccessPredicate(@Nonnull @NotEmpty List<Predicate<ProfileRequestContext>> predicateList) Constructor.- Parameters:
predicateList- the list of predicates to evaluate.
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<ProfileRequestContext>
-