Class LeafEntityTypeConstraint


  • @Immutable
    public final class LeafEntityTypeConstraint
    extends Object
    Leaf entity type constraint.

    Related specifications:

    • OpenID Connect Federation 1.0, section 5.2.3.
    • Constructor Detail

      • LeafEntityTypeConstraint

        public LeafEntityTypeConstraint​(Set<EntityType> allowed)
        Creates a new leaf entity type constraint.
        Parameters:
        allowed - The allowed leaf entity types, null or empty for any.
    • Method Detail

      • allowsAny

        public boolean allowsAny()
        Returns true if any leaf entity types are allowed.
        Returns:
        true if any leaf entity types are allowed.
      • getAllowed

        public Set<EntityTypegetAllowed()
        Returns the allowed leaf entity types.
        Returns:
        The allowed leaf entity types, null for any.
      • getAllowedAsStringList

        public List<StringgetAllowedAsStringList()
        Returns the allowed leaf entity types as a string list.
        Returns:
        The allowed leaf entity types as a string list, null for any.
      • isAllowed

        public boolean isAllowed​(EntityType type)
        Returns true if the specified entity type is allowed for a leaf entity.
        Parameters:
        type - The entity type.
        Returns:
        true if the entity type is allowed, else false.