com.adobe.flashaccess.sdk.protocol
Class ServerConfigData

java.lang.Object
  extended by com.adobe.flashaccess.sdk.protocol.ServerConfigData

public class ServerConfigData
extends java.lang.Object

Global server configuration data. This configuration information is sent to the client to control how the client should behave when tampering or clock windback have been detected.


Nested Class Summary
static class ServerConfigData.TamperBehavior
          Specifies how the client should behave if tampering is detected with the license store.
 
Constructor Summary
ServerConfigData()
          Creates a ServerConfig object with version 1 and default options.
 
Method Summary
 long getMaxClockWindback()
          Retrieves the maximum clock windback allowed on the client in seconds.
 ServerConfigData.TamperBehavior getTamperBehavior()
          Retrieves information on how the client should behave if tampering with the license store is detected.
 int getVersion()
          Retrieves the version of the server configuration data.
 void setMaxClockWindback(long seconds)
          Sets the maximum clock windback allowed on the client in seconds.
 void setTamperBehavior(ServerConfigData.TamperBehavior tamperBehavior)
          Sets how the client should behave if tampering with the license store is detected.
 void setVersion(int version)
          Sets the version of the server configuration data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConfigData

public ServerConfigData()
Creates a ServerConfig object with version 1 and default options.

Method Detail

getVersion

public int getVersion()
Retrieves the version of the server configuration data. The server should increment this version number if the configuration properties change. The SDK will only send the updated server configuration data to the client if the client's version is less than the current version.

Returns:
The version of the server configuration data.

setVersion

public void setVersion(int version)
Sets the version of the server configuration data. The server should increment this version number if the configuration properties change, so the server knows whether the client has an up-to-date version.

Parameters:
version - The version, which must be greater than or equal to the current version number.

getMaxClockWindback

public long getMaxClockWindback()
Retrieves the maximum clock windback allowed on the client in seconds.

Returns:
The maximum clock windback allowed on the client (seconds), or 0 for the default client windback restriction.

setMaxClockWindback

public void setMaxClockWindback(long seconds)
Sets the maximum clock windback allowed on the client in seconds.

Parameters:
seconds - The maximum clock windback allowed on the client (seconds), or 0 for the default client windback restriction.

getTamperBehavior

public ServerConfigData.TamperBehavior getTamperBehavior()
Retrieves information on how the client should behave if tampering with the license store is detected.

Returns:
The tamper behavior.

setTamperBehavior

public void setTamperBehavior(ServerConfigData.TamperBehavior tamperBehavior)
Sets how the client should behave if tampering with the license store is detected.

Parameters:
tamperBehavior - The tamper behavior.


[an error occurred while processing this directive] [an error occurred while processing this directive]