Class EntityIDConstraint
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.trust.constraints.EntityIDConstraint
-
- Direct Known Subclasses:
ExactMatchEntityIDConstraint,SubtreeEntityIDConstraint
public abstract class EntityIDConstraint extends Object
Entity ID constraint.Related specifications:
- OpenID Connect Federation 1.0, section 7.3.
- RFC 5280, section 4.2.1.10.
-
-
Constructor Summary
Constructors Constructor Description EntityIDConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanequals(Object other)abstract booleanmatches(EntityID entityID)Matches an entity ID with this constraint.static EntityIDConstraintparse(String value)Parses an entity ID constraint.abstract StringtoString()
-
-
-
Constructor Detail
-
EntityIDConstraint
public EntityIDConstraint()
-
-
Method Detail
-
matches
public abstract boolean matches(EntityID entityID)
Matches an entity ID with this constraint.- Parameters:
entityID- The entity ID to match. Must not benull.- Returns:
trueif this constraint matches the specified entity ID, elsefalse.
-
parse
public static EntityIDConstraint parse(String value) throws ParseException
Parses an entity ID constraint.- Parameters:
value- The string value.- Returns:
- The parsed
ExactMatchEntityIDConstraintorSubtreeEntityIDConstraint. - Throws:
ParseException- If parsing failed.
-
-