The class allows you to create a Handle (or Reference) to a specific browser. The handle allows you to access the browser in contexts where Cookies are not directly accessible by your Apex code (for example in LWC AuraEnabled methods)

expiresIn

global Long expiresIn;

Return

Returns number of milliseconds until the handle expires

value

global String value;

Return

Returns a String representation of the current Handle. The value can be passed to your LWC components to reference the browser for example.

isExpired

global Boolean isExpired();

Return

Indicates if the handle has expired.

extendUntil

global Long extendUntil(Datetime expirationTime);

Input

expirationTime: the new expiration time for the handle.
Creating handles which have long expiration time can represent a security risk for your application. When a handle leaks, it can be used to reference the current browser and do exactly the same actions on a different machine.

Return

Returns the current handle