Class EntityID
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.id.Identifier
-
- com.nimbusds.openid.connect.sdk.federation.entities.EntityID
-
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
@Immutable public final class EntityID extends Identifier
Federation entity identifier.Related specifications:
- OpenID Connect Federation 1.0, section 1.2.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
-
Constructor Summary
Constructors Constructor Description EntityID(Issuer issuer)
Creates a new entity identifier from the specified issuer identifier.EntityID(Subject subject)
Creates a new entity identifier from the specified subject identifier.EntityID(String value)
Creates a new entity identifier with the specified value.EntityID(URI value)
Creates a new entity identifier from the specified URI.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
static EntityID
parse(Issuer issuer)
Parses an entity ID from the specified issuer.static EntityID
parse(Subject subject)
Parses an entity ID from the specified subject.static EntityID
parse(String value)
Parses an entity ID from the specified string.URI
toURI()
Returns the entity identifier as an URI.-
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
-
-
-
Constructor Detail
-
EntityID
public EntityID(URI value)
Creates a new entity identifier from the specified URI.- Parameters:
value
- The URI. Must not benull
.
-
EntityID
public EntityID(Issuer issuer)
Creates a new entity identifier from the specified issuer identifier.- Parameters:
issuer
- The issuer. Must represent an URI and must not benull
.
-
EntityID
public EntityID(Subject subject)
Creates a new entity identifier from the specified subject identifier.- Parameters:
subject
- The subject. Must represent an URI and must not benull
.
-
-
Method Detail
-
toURI
public URI toURI()
Returns the entity identifier as an URI.- Returns:
- The entity identifier URI.
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classIdentifier
-
parse
public static EntityID parse(String value) throws ParseException
Parses an entity ID from the specified string.- Parameters:
value
- The string value. Must not benull
.- Returns:
- The entity ID.
- Throws:
ParseException
- On a illegal entity ID.
-
parse
public static EntityID parse(Issuer issuer) throws ParseException
Parses an entity ID from the specified issuer.- Parameters:
issuer
- The issuer. Must not benull
.- Returns:
- The entity ID.
- Throws:
ParseException
- On a illegal entity ID.
-
parse
public static EntityID parse(Subject subject) throws ParseException
Parses an entity ID from the specified subject.- Parameters:
subject
- The subject. Must not benull
.- Returns:
- The entity ID.
- Throws:
ParseException
- On a illegal entity ID.
-
-