public class StrictPolicy extends Object implements Policy
Using a non-caching policy ensures that there is no local preference data for malicious users to tamper with. As a side effect, applications will not be permitted to run while offline. Developers should carefully weigh the risks of using this Policy over one which implements caching, such as ServerManagedPolicy.
Access to the application is only allowed if a LICESNED response is. received. All other responses (including RETRY) will deny access.
LICENSED, NOT_LICENSED, RETRY| Constructor and Description |
|---|
StrictPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowAccess()
Check if the user should be allowed access to the application.
|
void |
processServerResponse(int response,
ResponseData rawData)
Process a new response from the license server.
|
public void processServerResponse(int response,
ResponseData rawData)
processServerResponse in interface Policyresponse - the result from validating the server responserawData - the raw server response datapublic boolean allowAccess()
allowAccess in interface PolicyCopyright © 2012–2014 simpligility technologies inc.. All rights reserved.