Class LeafEntityTypeConstraint

java.lang.Object
com.nimbusds.openid.connect.sdk.federation.trust.constraints.LeafEntityTypeConstraint

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

Related specifications:

  • OpenID Connect Federation 1.0, section 5.2.3.
  • Field Details

  • Constructor Details

    • LeafEntityTypeConstraint

      Creates a new leaf entity type constraint.
      Parameters:
      allowed - The allowed leaf entity types, null or empty for any.
  • Method Details

    • allowsAny

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

      Returns the allowed leaf entity types.
      Returns:
      The allowed leaf entity types, null for any.
    • getAllowedAsStringList

      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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • parse

      public static LeafEntityTypeConstraint parse(List<String> values) throws ParseException
      Parses a leaf entity type constraint.
      Parameters:
      values - The string values, null if not specified.
      Returns:
      The parsed leaf entity type constraint.
      Throws:
      ParseException - If parsing failed.