Class AbstractRegistrationAuthorityPolicyRule
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.AbstractRegistrationAuthorityPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
IssuerRegistrationAuthorityPolicyRule,ProxiedRequesterRegistrationAuthorityPolicyRule,RequesterRegistrationAuthorityPolicyRule
Base class for rules operating on the RPI extension in metadata.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private booleanWhat to say if no MDRPI is present.The registrars 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 abstract EntityDescriptorgetEntityMetadata(AttributeFilterContext filterContext) Gets the entity descriptor for the rule to check.Get the candidate registrars.private RegistrationInfogetRegistrationInfo(AttributeFilterContext filterContext) Look for theRegistrationInfoinside the peer's entity description.booleanGet what to do if there is no mdrpi/extensions.matches(AttributeFilterContext filterContext) Evaluate what this rule means.voidsetMatchIfMetadataSilent(boolean value) Set what to do if there is no mdrpi/extensions.voidsetRegistrars(Collection<String> theIssuers) Set the candidate registrars.Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
doInitialize, 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
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
registrars
The registrars to match against. -
matchIfMetadataSilent
private boolean matchIfMetadataSilentWhat to say if no MDRPI is present.
-
-
Constructor Details
-
AbstractRegistrationAuthorityPolicyRule
public AbstractRegistrationAuthorityPolicyRule()Constructor.
-
-
Method Details
-
getRegistrars
Get the candidate registrars.- Returns:
- the issuers
-
setRegistrars
Set the candidate registrars.- Parameters:
theIssuers- candidate registrars
-
isMatchIfMetadataSilent
public boolean isMatchIfMetadataSilent()Get what to do if there is no mdrpi/extensions.- Returns:
- Returns the matchIfMetadataSilent.
-
setMatchIfMetadataSilent
public void setMatchIfMetadataSilent(boolean value) Set what to do if there is no mdrpi/extensions.- Parameters:
value- The matchIfMetadataSilent to set.
-
getEntityMetadata
@Nullable protected abstract EntityDescriptor getEntityMetadata(@Nonnull AttributeFilterContext filterContext) Gets the entity descriptor for the rule to check.- Parameters:
filterContext- current filter request context- Returns:
- entity descriptor for the entity to check or null if not found
-
getRegistrationInfo
@Nullable private RegistrationInfo getRegistrationInfo(@Nonnull AttributeFilterContext filterContext) Look for theRegistrationInfoinside the peer's entity description.- Parameters:
filterContext- the context of the operation- Returns:
- The registration info for the SP in the context
-
matches
@Nonnull public PolicyRequirementRule.Tristate matches(@Nonnull AttributeFilterContext filterContext) Evaluate what this rule means.- Parameters:
filterContext- the context.- Returns:
- whether the rule holds
-