Class AbstractEntityGroupPolicyRule
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
net.shibboleth.idp.attribute.filter.policyrule.saml.impl.AbstractEntityGroupPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
IssuerInEntityGroupPolicyRule,ProxiedRequesterInEntityGroupPolicyRule,RequesterInEntityGroupPolicyRule
A matcher that evaluates to true if an entity's metadata matches the provided entity group name,
or a valid metadata-sourced affiliation of entities.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether to search metadata for AffiliationDescriptor membership.private StringThe entity group to match against.Fields inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
MATCHES_ALL, MATCHES_NONE, REQUIREMENT_RULE_FAILS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGets the entity group to match against.protected abstract EntityDescriptorgetEntityMetadata(AttributeFilterContext filterContext) Gets the entity descriptor for the entity to check.booleanReturns whether we check a suppliedMetadataResolverfor membership in an AffiliationDescriptor as a form of group policy.matches(AttributeFilterContext input) Evaluate what this rule means.voidsetCheckAffiliations(boolean flag) Set whether to check a suppliedMetadataResolverfor membership in an AffiliationDescriptor as a form of group policy.voidsetEntityGroup(String group) Sets the entity group to match against.Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
getLogPrefixMethods 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
-
entityGroup
The entity group to match against. -
checkAffiliations
private boolean checkAffiliationsWhether to search metadata for AffiliationDescriptor membership.
-
-
Constructor Details
-
AbstractEntityGroupPolicyRule
public AbstractEntityGroupPolicyRule()
-
-
Method Details
-
getEntityGroup
Gets the entity group to match against.- Returns:
- entity group to match against
-
setEntityGroup
Sets the entity group to match against.- Parameters:
group- entity group to match against
-
setCheckAffiliations
public void setCheckAffiliations(boolean flag) Set whether to check a suppliedMetadataResolverfor membership in an AffiliationDescriptor as a form of group policy.Defaults to false.
- Parameters:
flag- flag to set
-
isCheckAffiliations
public boolean isCheckAffiliations()Returns whether we check a suppliedMetadataResolverfor membership in an AffiliationDescriptor as a form of group policy.- Returns:
- whether to check for AffiliationDescriptor membership
- Since:
- 4.0.0
-
doInitialize
- Overrides:
doInitializein classAbstractPolicyRule- Throws:
ComponentInitializationException
-
getEntityMetadata
@Nullable protected abstract EntityDescriptor getEntityMetadata(@Nonnull AttributeFilterContext filterContext) Gets the entity descriptor for the entity to check.- Parameters:
filterContext- current filter request context- Returns:
- entity descriptor for the entity to check
-
matches
Evaluate what this rule means.- Parameters:
input- the context.- Returns:
- whether the rule holds
-