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 boolean
equals(Object other)
abstract boolean
matches(EntityID entityID)
Matches an entity ID with this constraint.static EntityIDConstraint
parse(String value)
Parses an entity ID constraint.abstract String
toString()
-
-
-
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:
true
if 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
ExactMatchEntityIDConstraint
orSubtreeEntityIDConstraint
. - Throws:
ParseException
- If parsing failed.
-
-