Class SectorID
java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.openid.connect.sdk.id.SectorID
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
Sector identifier.
Related specifications:
- OpenID Connect Core 1.0
- See Also:
-
Field Summary
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new sector identifier based on an audience.SectorID
(Identifier identifier) Creates a new sector identifier based on a generic identifier.Creates a new sector identifier based on a internet host.Creates a new sector identifier based on the host component of an URI. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
ensureHostComponent
(URI sectorURI) Ensures the URI contains a host component.static void
ensureHTTPScheme
(URI sectorURI) Ensures the URI has ahttps
scheme.Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, equals, getValue, hashCode, toJSONString, toString, toStringList
-
Constructor Details
-
SectorID
Creates a new sector identifier based on a internet host.Example host: client.example.com
- Parameters:
host
- The host. The value is not validated. Must not be empty ornull
.
-
SectorID
Creates a new sector identifier based on the host component of an URI.Example URI: https://client.example.com
- Parameters:
uri
- The URI. Must contain a host component and must not benull
.
-
SectorID
Creates a new sector identifier based on an audience.- Parameters:
audience
- The audience. Must not be empty ornull
.
-
SectorID
Creates a new sector identifier based on a generic identifier.- Parameters:
identifier
- The identifier. Must not be empty ornull
.
-
-
Method Details
-
ensureHTTPScheme
Ensures the URI has ahttps
scheme.- Parameters:
sectorURI
- The URI. Must have ahttps
scheme and not benull
.
-
ensureHostComponent
Ensures the URI contains a host component.- Parameters:
sectorURI
- The URI. Must contain a host component and not benull
.- Returns:
- The host component.
-