Enum AdbaSessionProperty

    • Method Detail

      • values

        public static AdbaSessionProperty[] 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 (AdbaSessionProperty c : AdbaSessionProperty.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AdbaSessionProperty valueOf​(java.lang.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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • range

        public java.lang.Class<?> range()
        Return the type of the value of this SessionProperty. Any value set for this property must be assignable to this type.
        Specified by:
        range in interface SessionProperty
        Returns:
        the type of the values of this SessionProperty
      • validate

        public boolean validate​(java.lang.Object value)
        Determine whether a value is valid for this SessionProperty. Returns true if value is valid and false otherwise.
        Specified by:
        validate in interface SessionProperty
        Parameters:
        value - a value for this SessionProperty
        Returns:
        true iff value is valid for this SessionProperty
      • isSensitive

        public boolean isSensitive()
        Returns true if this SessionProperty contains sensitive information such as a password or encryption key.
        Specified by:
        isSensitive in interface SessionProperty
        Returns:
        true iff this is sensitive