use of org.flyve.policies.manager.AndroidPolicies in project android-mdm-agent by flyve-mdm.
the class PasswordMinLetterPolicy method process.
@Override
protected boolean process() {
try {
int minimum = Integer.parseInt(this.policyValue.toString());
AndroidPolicies androidPolicies = new AndroidPolicies(context, FlyveAdminReceiver.class);
androidPolicies.setPasswordMinimumLetters(minimum);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
use of org.flyve.policies.manager.AndroidPolicies in project android-mdm-agent by flyve-mdm.
the class PasswordMinNonLetterPolicy method process.
@Override
protected boolean process() {
try {
int minimum = Integer.parseInt(this.policyValue.toString());
AndroidPolicies androidPolicies = new AndroidPolicies(context, FlyveAdminReceiver.class);
androidPolicies.setPasswordMinimumNonLetter(minimum);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
use of org.flyve.policies.manager.AndroidPolicies in project android-mdm-agent by flyve-mdm.
the class PasswordQualityPolicy method process.
@Override
protected boolean process() {
try {
String quality = this.policyValue.toString();
AndroidPolicies androidPolicies = new AndroidPolicies(context, FlyveAdminReceiver.class);
androidPolicies.setPasswordQuality(quality);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
use of org.flyve.policies.manager.AndroidPolicies in project android-mdm-agent by flyve-mdm.
the class VPNPolicy method process.
@Override
protected boolean process() {
try {
boolean disable = Boolean.parseBoolean(this.policyValue.toString());
AndroidPolicies androidPolicies = new AndroidPolicies(context, FlyveAdminReceiver.class);
androidPolicies.disableVPN(disable);
return true;
} catch (Exception ex) {
FlyveLog.e(this.getClass().getName() + ", process", ex.getMessage());
return false;
}
}
Aggregations