Class RegistrationAuthorityItemIdentificationStrategy<T>

java.lang.Object
net.shibboleth.metadata.AbstractCompositeItemIdentificationStrategy<T>
net.shibboleth.metadata.FirstItemIdItemIdentificationStrategy<T>
net.shibboleth.metadata.dom.saml.mdrpi.RegistrationAuthorityItemIdentificationStrategy<T>
Type Parameters:
T - type of Item to be identified
All Implemented Interfaces:
ItemIdentificationStrategy<T>

@ThreadSafe public class RegistrationAuthorityItemIdentificationStrategy<T> extends FirstItemIdItemIdentificationStrategy<T>
Item identification strategy for interfederation use cases. The basic identifier is taken from FirstItemIdItemIdentificationStrategy. The extra identifier is based on a RegistrationAuthority if one of those is present. The extra identifier is omitted if it is present in a specified list, and it can be mapped to a simpler value for display if desired.
Since:
0.9.0
  • Field Details

    • ignoredRegistrationAuthorities

      @Nonnull @NonnullElements @Unmodifiable private Set<String> ignoredRegistrationAuthorities
      Set of registration authorities to be ignored.
    • registrationAuthorityDisplayNames

      @Nonnull @NonnullElements @Unmodifiable private Map<String,String> registrationAuthorityDisplayNames
      Replacement display names for registration authorities.
  • Constructor Details

    • RegistrationAuthorityItemIdentificationStrategy

      public RegistrationAuthorityItemIdentificationStrategy()
  • Method Details

    • getIgnoredRegistrationAuthorities

      @Nonnull @NonnullElements @Unmodifiable public final Collection<String> getIgnoredRegistrationAuthorities()
      Returns the set of registration authorities we are ignoring.
      Returns:
      Set of registration authority names.
    • setIgnoredRegistrationAuthorities

      public void setIgnoredRegistrationAuthorities(@Nonnull @NonnullElements @Unmodifiable Collection<String> registrars)
      Set the set of registration authorities we are ignoring.
      Parameters:
      registrars - Set of registration authority names to ignore.
    • getRegistrationAuthorityDisplayNames

      @Nonnull @NonnullElements @Unmodifiable public final Map<String,String> getRegistrationAuthorityDisplayNames()
      Returns the map of display names for registration authorities.
      Returns:
      Map of display names for authorities.
    • setRegistrationAuthorityDisplayNames

      public void setRegistrationAuthorityDisplayNames(@Nonnull @NonnullElements @Unmodifiable Map<String,String> names)
      Sets the map of display names for registration authorities.
      Parameters:
      names - Map of display names for registration authorities.
    • getExtraIdentifier

      @Nullable protected String getExtraIdentifier(@Nonnull Item<T> item)
      Derive a display name for an entity's registration authority, if it has one.
      Overrides:
      getExtraIdentifier in class FirstItemIdItemIdentificationStrategy<T>
      Parameters:
      item - Item to derive an identifier for.
      Returns:
      registration authority name, or null.