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
public class IdentifierWithOptionalURIRepresentation extends Identifier
The base class for representing identifiers with an optional URI representation.Extending classes must override the
Identifier.equals(java.lang.Object)
method.- 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 IdentifierWithOptionalURIRepresentation(String value)
Creates a new identifier with the specified value.IdentifierWithOptionalURIRepresentation(URI uri)
Creates a new identifier with the specified URI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getURI()
Returns the URI representation.-
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, equals, getValue, hashCode, toJSONString, toString, toStringList
-
-
-
-
Constructor Detail
-
IdentifierWithOptionalURIRepresentation
public IdentifierWithOptionalURIRepresentation(URI uri)
Creates a new identifier with the specified URI.- Parameters:
uri
- The URI. Must not benull
.
-
IdentifierWithOptionalURIRepresentation
public IdentifierWithOptionalURIRepresentation(String value)
Creates a new identifier with the specified value.- Parameters:
value
- The value. Must not benull
or empty string.
-
-