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
See Also:
  • Constructor Details

    • SectorID

      public SectorID(String host)
      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 or null.
    • SectorID

      public SectorID(URI uri)
      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 be null.
    • SectorID

      public SectorID(Audience audience)
      Creates a new sector identifier based on an audience.
      Parameters:
      audience - The audience. Must not be empty or null.
    • SectorID

      public SectorID(Identifier identifier)
      Creates a new sector identifier based on a generic identifier.
      Parameters:
      identifier - The identifier. Must not be empty or null.
  • Method Details

    • ensureHTTPScheme

      public static void ensureHTTPScheme(URI sectorURI)
      Ensures the URI has a https scheme.
      Parameters:
      sectorURI - The URI. Must have a https scheme and not be null.
    • ensureHostComponent

      public static String ensureHostComponent(URI sectorURI)
      Ensures the URI contains a host component.
      Parameters:
      sectorURI - The URI. Must contain a host component and not be null.
      Returns:
      The host component.