Package com.hierynomus.mssmb2
Class LeaseKey
java.lang.Object
com.hierynomus.mssmb2.LeaseKey
A 16-byte SMB2 lease key ([MS-SMB2] 2.2.13.2.8). Value object so it can key a
Map<LeaseKey, ...> lease table and match an inbound lease-break's LeaseKey.
Per Apple's reference client, a lease key is minted per-node (per file/directory)
and reused for that node's lifetime.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
-
Constructor Details
-
LeaseKey
public LeaseKey(byte[] key)
-
-
Method Details
-
random
Mint a fresh random per-node lease key. -
fromUuid
-
zero
The canonical all-zero key, meaning "no (parent) lease key". -
getBytes
public byte[] getBytes() -
isAllZero
public boolean isAllZero() -
equals
-
hashCode
public int hashCode() -
toString
-