Class ExactMatchEntityIDConstraint
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.trust.constraints.EntityIDConstraint
-
- com.nimbusds.openid.connect.sdk.federation.trust.constraints.ExactMatchEntityIDConstraint
-
@Immutable public final class ExactMatchEntityIDConstraint extends EntityIDConstraint
Exact match 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 ExactMatchEntityIDConstraint(EntityID entityID)Creates a new exact match entity ID constraint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()booleanmatches(EntityID entityID)Matches an entity ID with this constraint.StringtoString()-
Methods inherited from class com.nimbusds.openid.connect.sdk.federation.trust.constraints.EntityIDConstraint
parse
-
-
-
-
Constructor Detail
-
ExactMatchEntityIDConstraint
public ExactMatchEntityIDConstraint(EntityID entityID)
Creates a new exact match entity ID constraint.- Parameters:
entityID- The exact entity ID to match. Must not benull.
-
-
Method Detail
-
matches
public boolean matches(EntityID entityID)
Description copied from class:EntityIDConstraintMatches an entity ID with this constraint.- Specified by:
matchesin classEntityIDConstraint- Parameters:
entityID- The entity ID to match. Must not benull.- Returns:
trueif this constraint matches the specified entity ID, elsefalse.
-
toString
public String toString()
- Specified by:
toStringin classEntityIDConstraint
-
equals
public boolean equals(Object o)
- Specified by:
equalsin classEntityIDConstraint
-
-