Class SMB2LeaseCreateContext
java.lang.Object
com.hierynomus.mssmb2.messages.create.SMB2LeaseCreateContext
Builds the
RqLs lease create-context request payload ([MS-SMB2] 2.2.13.2.8 V1 /
2.2.13.2.10 V2). V1 (32B) is the SMB 2.1 file lease; V2 (52B) is the SMB 3.x file /
directory lease (adds ParentLeaseKey + Epoch). Only the bytes inside the
context data live here; the surrounding TLV is supplied by SMB2CreateContext.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte[]The "RqLs" 4CC in network (big-endian) order. -
Method Summary
Modifier and TypeMethodDescriptionlonggetFlags()byte[]toBytes()The inner data blob: 32 bytes (V1) or 52 bytes (V2).Wrap into the generic create-context (name "RqLs", data =toBytes()).static SMB2LeaseCreateContextSMB 2.1 file lease (V1, 32 bytes).static SMB2LeaseCreateContextSMB 3.x file / directory lease (V2, 52 bytes).
-
Field Details
-
NAME
public static final byte[] NAMEThe "RqLs" 4CC in network (big-endian) order.
-
-
Method Details
-
v1
SMB 2.1 file lease (V1, 32 bytes). -
v2
public static SMB2LeaseCreateContext v2(LeaseKey leaseKey, long leaseState, LeaseKey parentLeaseKey) SMB 3.x file / directory lease (V2, 52 bytes).parentLeaseKeymay be null. -
getVersion
-
getFlags
public long getFlags() -
toBytes
public byte[] toBytes()The inner data blob: 32 bytes (V1) or 52 bytes (V2). -
toCreateContext
Wrap into the generic create-context (name "RqLs", data =toBytes()).
-