Class AbstractRegistrationAuthorityPolicyRule

All Implemented Interfaces:
PolicyRequirementRule, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent
Direct Known Subclasses:
AttributeIssuerRegistrationAuthorityPolicyRule, AttributeRequesterRegistrationAuthorityPolicyRule

public abstract class AbstractRegistrationAuthorityPolicyRule
extends AbstractPolicyRule
Base class for rules operating on the RPI extension in metadata.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • registrars

      @Nonnull @NonnullElements private Set<String> registrars
      The registrars to match against.
    • matchIfMetadataSilent

      private boolean matchIfMetadataSilent
      What to say if no MDRPI is present.
  • Constructor Details

    • AbstractRegistrationAuthorityPolicyRule

      public AbstractRegistrationAuthorityPolicyRule()
  • Method Details

    • getRegistrars

      @Nonnull @NonnullElements @Unmodifiable @NotLive public Set<String> getRegistrars()
      Get the candidate registrars.
      Returns:
      the issuers
    • setRegistrars

      public void setRegistrars​(@Nonnull @NonnullElements Collection<String> theIssuers)
      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 the RegistrationInfo inside the peer's entity description.
      Parameters:
      filterContext - the context of the operation
      Returns:
      The registration info for the SP in the context
    • matches

      public PolicyRequirementRule.Tristate matches​(@Nonnull AttributeFilterContext filterContext)
      Evaluate what this rule means.
      Parameters:
      filterContext - the context.
      Returns:
      whether the rule holds