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
Federation entity identifier.
Related specifications:
- OpenID Connect Federation 1.0, section 1.2.
- See Also:
-
Field Summary
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new entity identifier from the specified client identifier.Creates a new entity identifier from the specified issuer identifier.Creates a new entity identifier from the specified subject identifier.Creates a new entity identifier with the specified value.Creates a new entity identifier from the specified URI. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static EntityID
Parses an entity ID from the specified client ID.static EntityID
Parses an entity ID from the specified issuer.static EntityID
Parses an entity ID from the specified subject.static EntityID
Parses an entity ID from the specified string.Returns the entity identifier as a client ID.toIssuer()
Returns the entity identifier as an issuer.Returns the entity identifier as a subject.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 Details
-
EntityID
Creates a new entity identifier from the specified URI.- Parameters:
value
- The URI. Must not benull
.- Throws:
IllegalArgumentException
- On a illegal entity ID.
-
EntityID
Creates a new entity identifier from the specified issuer identifier.- Parameters:
issuer
- The issuer. Must represent an URI and must not benull
.- Throws:
IllegalArgumentException
- On a illegal entity ID.
-
EntityID
Creates a new entity identifier from the specified subject identifier.- Parameters:
subject
- The subject. Must represent an URI and must not benull
.- Throws:
IllegalArgumentException
- On a illegal entity ID.
-
EntityID
Creates a new entity identifier from the specified client identifier.- Parameters:
clientID
- The client ID. Must represent an URI and must not benull
.
-
EntityID
Creates a new entity identifier with the specified value.- Parameters:
value
- The identifier value. Must represent an URI and must not benull
.- Throws:
IllegalArgumentException
- On a illegal entity ID.
-
-
Method Details
-
toURI
Returns the entity identifier as an URI.- Returns:
- The entity identifier URI.
-
toIssuer
Returns the entity identifier as an issuer.- Returns:
- The issuer.
-
toSubject
Returns the entity identifier as a subject.- Returns:
- The subject.
-
toClientID
Returns the entity identifier as a client ID.- Returns:
- The client ID.
-
equals
- Overrides:
equals
in classIdentifier
-
parse
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
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
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.
-
parse
Parses an entity ID from the specified client ID.- Parameters:
clientID
- The client ID. Must not benull
.- Returns:
- The entity ID.
- Throws:
ParseException
- On a illegal entity ID.
-