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
@Immutable public final class SectorID extends Identifier
Sector identifier.Related specifications:
- OpenID Connect Core 1.0, section 8.1.
- 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 SectorID(Audience audience)Creates a new sector identifier for the specified audience.SectorID(String host)Creates a new sector identifier for the specified host.SectorID(URI sectorURI)Creates a new sector identifier for the specified URI.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringensureHostComponent(URI sectorURI)Ensures the specified URI contains a host component.static voidensureHTTPScheme(URI sectorURI)Ensures the specified URI has ahttpsscheme.-
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, equals, getValue, hashCode, toJSONString, toString, toStringList
-
-
-
-
Constructor Detail
-
SectorID
public SectorID(String host)
Creates a new sector identifier for the specified host.- Parameters:
host- The host. Must not be empty ornull.
-
SectorID
public SectorID(URI sectorURI)
Creates a new sector identifier for the specified URI.- Parameters:
sectorURI- The sector URI. Must contain a host component and must not benull.
-
-
Method Detail
-
ensureHTTPScheme
public static void ensureHTTPScheme(URI sectorURI)
Ensures the specified URI has ahttpsscheme.- Parameters:
sectorURI- The URI. Must have ahttpsscheme and not benull.
-
ensureHostComponent
public static String ensureHostComponent(URI sectorURI)
Ensures the specified URI contains a host component.- Parameters:
sectorURI- The URI. Must contain a host component and not benull.- Returns:
- The host component.
-
-