Package com.nimbusds.oauth2.sdk.id
Class IdentifierWithOptionalURIRepresentation
java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.oauth2.sdk.id.IdentifierWithOptionalURIRepresentation
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
- Direct Known Subclasses:
AuthorizationType
,Location
The base class for representing identifiers with an optional URI
representation.
Extending classes must override the Identifier.equals(java.lang.Object)
method.
- See Also:
-
Field Summary
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new identifier with the specified value.Creates a new identifier with the specified URI. -
Method Summary
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, equals, getValue, hashCode, toJSONString, toString, toStringList
-
Constructor Details
-
IdentifierWithOptionalURIRepresentation
Creates a new identifier with the specified URI.- Parameters:
uri
- The URI. Must not benull
.
-
IdentifierWithOptionalURIRepresentation
Creates a new identifier with the specified value.- Parameters:
value
- The value. Must not benull
or empty string.
-
-
Method Details
-
getURI
Returns the URI representation.- Returns:
- The URI,
null
if the identifier value cannot be parsed to a URI.
-