|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientState
Client state information included in a request. This information can be used by the server to detect tampering on the client.
Method Summary | |
---|---|
long |
getCounter()
Gets the current value of the client state counter. |
java.lang.String |
getTimeZoneId()
Gets the client's timezone as an offset from GMT (does not reflect changes due to daylight savings time). |
void |
incrementCounter()
Increments the client state counter. |
Method Detail |
---|
java.lang.String getTimeZoneId()
java.util.TimeZone
custom time zone identifier. This string
can be used to construct a java.util.TimeZone
.
long getCounter()
Gets the current value of the client state counter. If the server depends on client state for enforcement of any policies (for example, the client stores the playback start time to enforce the playback window restriction), it is highly recommended that the server store the counter value along with a machine identifier and check the counter during each request:
incrementCounter()
. The server should
store the current counter value instead of the updated value in case the client
does not receive the server's response and needs to re-send the request.
The updated counter will be sent back to the client in the response and the client
will store the updated value.
void incrementCounter()
ClientState.getCounter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |