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 ofItemto 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 Summary
FieldsModifier and TypeFieldDescriptionSet of registration authorities to be ignored.Replacement display names for registration authorities. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetExtraIdentifier(Item<T> item) Derive a display name for an entity's registration authority, if it has one.final Collection<String>Returns the set of registration authorities we are ignoring.Returns the map of display names for registration authorities.voidsetIgnoredRegistrationAuthorities(Collection<String> registrars) Set the set of registration authorities we are ignoring.voidSets the map of display names for registration authorities.Methods inherited from class net.shibboleth.metadata.FirstItemIdItemIdentificationStrategy
getBasicIdentifierMethods inherited from class net.shibboleth.metadata.AbstractCompositeItemIdentificationStrategy
getItemIdentifier, getNoItemIdIdentifier, setNoItemIdIdentifier
-
Field Details
-
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:
Setof registration authority names.
-
setIgnoredRegistrationAuthorities
public void setIgnoredRegistrationAuthorities(@Nonnull @NonnullElements @Unmodifiable Collection<String> registrars) Set the set of registration authorities we are ignoring.- Parameters:
registrars-Setof 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:
Mapof 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-Mapof display names for registration authorities.
-
getExtraIdentifier
Derive a display name for an entity's registration authority, if it has one.- Overrides:
getExtraIdentifierin classFirstItemIdItemIdentificationStrategy<T>- Parameters:
item-Itemto derive an identifier for.- Returns:
- registration authority name, or
null.
-