Class LeafEntityTypeConstraint
java.lang.Object
com.nimbusds.openid.connect.sdk.federation.trust.constraints.LeafEntityTypeConstraint
Leaf entity type constraint.
Related specifications:
- OpenID Connect Federation 1.0, section 5.2.3.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LeafEntityTypeConstraintAny leaf entity types allowed constant. -
Constructor Summary
ConstructorsConstructorDescriptionLeafEntityTypeConstraint(Set<EntityType> allowed) Creates a new leaf entity type constraint. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif any leaf entity types are allowed.booleanReturns the allowed leaf entity types.Returns the allowed leaf entity types as a string list.inthashCode()booleanisAllowed(EntityType type) Returnstrueif the specified entity type is allowed for a leaf entity.static LeafEntityTypeConstraintParses a leaf entity type constraint.toString()
-
Field Details
-
ANY
Any leaf entity types allowed constant.
-
-
Constructor Details
-
LeafEntityTypeConstraint
Creates a new leaf entity type constraint.- Parameters:
allowed- The allowed leaf entity types,nullor empty for any.
-
-
Method Details
-
allowsAny
Returnstrueif any leaf entity types are allowed.- Returns:
trueif any leaf entity types are allowed.
-
getAllowed
Returns the allowed leaf entity types.- Returns:
- The allowed leaf entity types,
nullfor any.
-
getAllowedAsStringList
Returns the allowed leaf entity types as a string list.- Returns:
- The allowed leaf entity types as a string list,
nullfor any.
-
isAllowed
Returnstrueif the specified entity type is allowed for a leaf entity.- Parameters:
type- The entity type.- Returns:
trueif the entity type is allowed, elsefalse.
-
toString
-
equals
-
hashCode
-
parse
Parses a leaf entity type constraint.- Parameters:
values- The string values,nullif not specified.- Returns:
- The parsed leaf entity type constraint.
- Throws:
ParseException- If parsing failed.
-