Class SectorID

    • Constructor Detail

      • 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 a 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 Detail

      • 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.