Class Issuer

    • Constructor Detail

      • Issuer

        public Issuer​(String value)
        Creates a new issuer identifier with the specified value.
        Parameters:
        value - The issuer identifier value. Must not be null or empty string.
      • Issuer

        public Issuer​(URI value)
        Creates a new issuer identifier with the specified URI value.
        Parameters:
        value - The URI value. Must not be null.
      • Issuer

        public Issuer​(Identifier value)
        Creates a new issuer identifier with the specified value.
        Parameters:
        value - The value. Must not be null.
    • Method Detail

      • isValid

        public static boolean isValid​(String value)
        Checks if the specified string represents a valid issuer identifier. This method is null-safe.
        Parameters:
        value - The issuer string.
        Returns:
        true if the string represents a valid issuer identifier, else false.
      • isValid

        public static boolean isValid​(Issuer value)
        Checks if the specified issuer is a valid identifier. This method is null-safe.
        Parameters:
        value - The issuer.
        Returns:
        true if the value is a valid identifier, else false.
      • isValid

        public static boolean isValid​(URI value)
        Checks if the specified URI represents a valid issuer identifier. This method is null-safe.
        Parameters:
        value - The URI.
        Returns:
        true if the values represents a valid issuer identifier, else false.
      • isValid

        public boolean isValid()
        Checks if this issuer is a valid identifier. This method is null-safe.
        Returns:
        true if the value is a valid identifier, else false.
      • parse

        public static Issuer parse​(String s)
        Parses an issuer from the specified string.
        Parameters:
        s - The string to parse, null or empty if no issuer is specified.
        Returns:
        The issuer, null if the parsed string was null or empty.