All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javapns.notification.management.PasswordPolicyPayload Maven / Gradle / Ivy

There is a newer version: 2.4.2
Show newest version
package javapns.notification.management;

import org.json.JSONException;

/**
 * An MDM payload for PasswordPolicy.
 *
 * @author Sylvain Pedneault
 */
class PasswordPolicyPayload extends MobileConfigPayload {
  public PasswordPolicyPayload(final int payloadVersion, final String payloadOrganization, final String payloadIdentifier, final String payloadDisplayName) throws JSONException {
    super(payloadVersion, "com.apple.mobiledevice.passwordpolicy", payloadOrganization, payloadIdentifier, payloadDisplayName);
  }

  public void setAllowSimple(final boolean value) throws JSONException {
    getPayload().put("allowSimple", value);
  }

  public void setForcePIN(final boolean value) throws JSONException {
    getPayload().put("forcePIN", value);
  }

  public void setMaxFailedAttempts(final int value) throws JSONException {
    getPayload().put("maxFailedAttempts", value);
  }

  public void setMaxInactivity(final int value) throws JSONException {
    getPayload().put("maxInactivity", value);
  }

  public void setMaxPINAgeInDays(final int value) throws JSONException {
    getPayload().put("maxPINAgeInDays", value);
  }

  public void setMinComplexChars(final int value) throws JSONException {
    getPayload().put("minComplexChars", value);
  }

  public void setMinLength(final int value) throws JSONException {
    getPayload().put("minLength", value);
  }

  public void setRequireAlphanumeric(final boolean value) throws JSONException {
    getPayload().put("requireAlphanumeric", value);
  }

  public void setPinHistory(final int value) throws JSONException {
    getPayload().put("pinHistory", value);
  }

  public void setManualFetchingWhenRoaming(final boolean value) throws JSONException {
    getPayload().put("manualFetchingWhenRoaming", value);
  }

  public void setMaxGracePeriod(final int value) throws JSONException {
    getPayload().put("maxGracePeriod", value);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy