javapns.notification.management
Class VPNPayload

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

public class VPNPayload
extends MobileConfigPayload

An MDM payload for VPN.

Author:
Sylvain Pedneault

Field Summary
static String VPNTYPE_IPSec
           
static String VPNTYPE_L2TP
           
static String VPNTYPE_PPTP
           
 
Constructor Summary
VPNPayload(int payloadVersion, String payloadOrganization, String payloadIdentifier, String payloadDisplayName, String userDefinedName, boolean overridePrimary, String vpnType)
           
 
Method Summary
 JSONObject addIPSec()
           
 JSONObject addPPP()
           
 
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
 

Field Detail

VPNTYPE_L2TP

public static final String VPNTYPE_L2TP
See Also:
Constant Field Values

VPNTYPE_PPTP

public static final String VPNTYPE_PPTP
See Also:
Constant Field Values

VPNTYPE_IPSec

public static final String VPNTYPE_IPSec
See Also:
Constant Field Values
Constructor Detail

VPNPayload

public VPNPayload(int payloadVersion,
                  String payloadOrganization,
                  String payloadIdentifier,
                  String payloadDisplayName,
                  String userDefinedName,
                  boolean overridePrimary,
                  String vpnType)
           throws JSONException
Throws:
JSONException
Method Detail

addPPP

public JSONObject addPPP()
                  throws JSONException
Throws:
JSONException

addIPSec

public JSONObject addIPSec()
                    throws JSONException
Throws:
JSONException