Enum Class SMB2LeaseFlags

java.lang.Object
java.lang.Enum<SMB2LeaseFlags>
com.hierynomus.mssmb2.SMB2LeaseFlags
All Implemented Interfaces:
EnumWithValue<SMB2LeaseFlags>, Serializable, Comparable<SMB2LeaseFlags>, Constable

public enum SMB2LeaseFlags extends Enum<SMB2LeaseFlags> implements EnumWithValue<SMB2LeaseFlags>
SMB2 lease flags ([MS-SMB2] 2.2.13.2.8 / 2.2.13.2.10). PARENT_LEASE_KEY_SET is set on a V2 request/response when ParentLeaseKey carries the enclosing directory's lease key; BREAK_IN_PROGRESS appears only in responses.
  • Enum Constant Details

    • SMB2_LEASE_FLAG_NONE

      public static final SMB2LeaseFlags SMB2_LEASE_FLAG_NONE
    • SMB2_LEASE_FLAG_BREAK_IN_PROGRESS

      public static final SMB2LeaseFlags SMB2_LEASE_FLAG_BREAK_IN_PROGRESS
    • SMB2_LEASE_FLAG_PARENT_LEASE_KEY_SET

      public static final SMB2LeaseFlags SMB2_LEASE_FLAG_PARENT_LEASE_KEY_SET
  • Method Details

    • values

      public static SMB2LeaseFlags[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SMB2LeaseFlags valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public long getValue()
      Specified by:
      getValue in interface EnumWithValue<SMB2LeaseFlags>