Enum SubjectType

    • Enum Constant Detail

      • PUBLIC

        public static final SubjectType PUBLIC
        "public" (1).

        This provides the same sub (subject) value to all Clients. It is the default if the provider has no subject_types_supported element in its discovery document.

      • PAIRWISE

        public static final SubjectType PAIRWISE
        "pairwise" (2).

        This provides a different sub value to each sector identifier, so as not to enable Clients to correlate the End-User's activities without permission. See 8.1. Pairwise Identifier Algorithm for details.

    • Method Detail

      • values

        public static SubjectType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SubjectType c : SubjectType.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SubjectType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public short getValue()
        Get the integer representation of this enum instance.
      • getByValue

        public static SubjectType getByValue​(short value)
        Find an instance of this enum by a value.
        value - The integer representation of the instance to find.
        An instance of this enum, or null if not found.
      • parse

        public static SubjectType parse​(String subjectType)
        Convert String to SubjectType.
        subjectType - A subject type. For example, "pairwise".
        SubjectType instance, or null.
      • toArray

        public static SubjectType[] toArray​(int bits)