javapns.notification.management
Class LDAPPayload

java.lang.Object
  extended by javapns.notification.Payload
      extended by javapns.notification.management.MobileConfigPayload
          extended by javapns.notification.management.LDAPPayload

public class LDAPPayload
extends MobileConfigPayload

An MDM payload for LDAP.

Author:
Sylvain Pedneault

Constructor Summary
LDAPPayload(int payloadVersion, String payloadOrganization, String payloadIdentifier, String payloadDisplayName, String ldapAccountHostName, boolean ldapAccountUseSSL)
           
 
Method Summary
 JSONObject addSearchSettings(String ldapSearchSettingSearchBase, int ldapSearchSettingScope)
           
 JSONObject addSearchSettings(String ldapSearchSettingSearchBase, int ldapSearchSettingScope, String ldapSearchSettingDescription)
           
 JSONObject addSearchSettings(String ldapSearchSettingSearchBase, String ldapSearchSettingScope)
           
 JSONObject addSearchSettings(String ldapSearchSettingSearchBase, String ldapSearchSettingScope, String ldapSearchSettingDescription)
           
 void setLDAPAccountDescription(boolean value)
           
 void setLDAPAccountPassword(boolean value)
           
 void setLDAPAccountUserName(boolean value)
           
 
Methods inherited from class javapns.notification.management.MobileConfigPayload
setPayloadDescription, setPayloadRemovalDisallowed
 
Methods inherited from class javapns.notification.Payload
addCustomDictionary, addCustomDictionary, addCustomDictionary, asSimulationOnly, estimatePayloadSizeAfterAdding, getCharacterEncoding, getExpiry, getMaximumPayloadSize, getPayload, getPayloadAsBytes, getPayloadSize, isEstimatedPayloadSizeAllowedAfterAdding, isPayloadSizeEstimatedWhenAdding, setCharacterEncoding, setExpiry, setPayloadSizeEstimatedWhenAdding, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPPayload

public LDAPPayload(int payloadVersion,
                   String payloadOrganization,
                   String payloadIdentifier,
                   String payloadDisplayName,
                   String ldapAccountHostName,
                   boolean ldapAccountUseSSL)
            throws JSONException
Throws:
JSONException
Method Detail

setLDAPAccountDescription

public void setLDAPAccountDescription(boolean value)
                               throws JSONException
Throws:
JSONException

setLDAPAccountUserName

public void setLDAPAccountUserName(boolean value)
                            throws JSONException
Throws:
JSONException

setLDAPAccountPassword

public void setLDAPAccountPassword(boolean value)
                            throws JSONException
Throws:
JSONException

addSearchSettings

public JSONObject addSearchSettings(String ldapSearchSettingSearchBase,
                                    String ldapSearchSettingScope)
                             throws JSONException
Throws:
JSONException

addSearchSettings

public JSONObject addSearchSettings(String ldapSearchSettingSearchBase,
                                    int ldapSearchSettingScope)
                             throws JSONException
Throws:
JSONException

addSearchSettings

public JSONObject addSearchSettings(String ldapSearchSettingSearchBase,
                                    int ldapSearchSettingScope,
                                    String ldapSearchSettingDescription)
                             throws JSONException
Throws:
JSONException

addSearchSettings

public JSONObject addSearchSettings(String ldapSearchSettingSearchBase,
                                    String ldapSearchSettingScope,
                                    String ldapSearchSettingDescription)
                             throws JSONException
Throws:
JSONException