Class MetadataValueEqualsCondition
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.plugin.oidc.op.profile.logic.MetadataValueEqualsCondition
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class MetadataValueEqualsCondition
extends AbstractIdentifiableInitializableComponent
implements Predicate<ProfileRequestContext>
A predicate for matching if the OIDC metadata value with a configurable key is equal to a configurable value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidsetDefaultValue(Object value) Set the value used for matching if metadata value was null.voidSet the metadata key whose value is used for matching.voidSet the lookup strategy for OIDCMetadataContext.voidSet the metadata value to be matched.booleantest(ProfileRequestContext input) Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
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
-
oidcMetadataContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCMetadataContext> oidcMetadataContextLookupStrategyThe lookup strategy for OIDCMetadataContext. -
metadataKey
The metadata key whose value is used for matching. -
metadataValue
The metadata value to be matched. -
defaultValue
The value used for matching if metadata value was null.
-
-
Constructor Details
-
MetadataValueEqualsCondition
public MetadataValueEqualsCondition()Constructor.
-
-
Method Details
-
setOidcMetadataContextLookupStrategy
public void setOidcMetadataContextLookupStrategy(@Nonnull Function<ProfileRequestContext, OIDCMetadataContext> strategy) Set the lookup strategy for OIDCMetadataContext.- Parameters:
strategy- What to set.
-
setKey
Set the metadata key whose value is used for matching.- Parameters:
key- What to set.
-
setValue
Set the metadata value to be matched.- Parameters:
value- What to set.
-
setDefaultValue
Set the value used for matching if metadata value was null.- Parameters:
value- What to set.
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
test
- Specified by:
testin interfacePredicate<ProfileRequestContext>
-