Class SubtreeEntityIDConstraint
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.trust.constraints.EntityIDConstraint
-
- com.nimbusds.openid.connect.sdk.federation.trust.constraints.SubtreeEntityIDConstraint
-
@Immutable public final class SubtreeEntityIDConstraint extends EntityIDConstraint
Subtree entity ID constraint.Example:
https://.example.com
matcheshttps://my.example.com
,https://my.host.example.com
, etc.Related specifications:
- OpenID Connect Federation 1.0, section 7.3.
- RFC 5280, section 4.2.1.10.
-
-
Constructor Summary
Constructors Constructor Description SubtreeEntityIDConstraint(String entityIDPattern)
Creates a new subtree entity ID constraint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
boolean
matches(EntityID entityID)
Matches an entity ID with this constraint.String
toString()
-
Methods inherited from class com.nimbusds.openid.connect.sdk.federation.trust.constraints.EntityIDConstraint
parse
-
-
-
-
Constructor Detail
-
SubtreeEntityIDConstraint
public SubtreeEntityIDConstraint(String entityIDPattern)
Creates a new subtree entity ID constraint.- Parameters:
entityIDPattern
- The entity ID pattern to match. Must not benull
.
-
-
Method Detail
-
matches
public boolean matches(EntityID entityID)
Description copied from class:EntityIDConstraint
Matches an entity ID with this constraint.- Specified by:
matches
in classEntityIDConstraint
- Parameters:
entityID
- The entity ID to match. Must not benull
.- Returns:
true
if this constraint matches the specified entity ID, elsefalse
.
-
toString
public String toString()
- Specified by:
toString
in classEntityIDConstraint
-
equals
public boolean equals(Object o)
- Specified by:
equals
in classEntityIDConstraint
-
-