public class DeviceProfilePersistorWindowsV11
extends com.ionic.sdk.device.profile.persistor.DeviceProfilePersistorBase
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HEADER_VALUE_VERSION
Ionic Secure Enrollment Profile type header field value.
|
| Constructor and Description |
|---|
DeviceProfilePersistorWindowsV11()
Default constructor for DeviceProfilePersistorDPAPI.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<com.ionic.sdk.device.profile.DeviceProfile> |
loadAllProfiles(java.lang.String[] activeProfile)
Deserialize Secure Enrollment Profile data from the filesystem.
|
void |
saveAllProfiles(java.util.List<com.ionic.sdk.device.profile.DeviceProfile> profiles,
java.lang.String activeProfile)
Serialize Secure Enrollment Profile data to the filesystem.
|
public static final java.lang.String HEADER_VALUE_VERSION
public DeviceProfilePersistorWindowsV11()
throws com.ionic.sdk.error.IonicException
com.ionic.sdk.error.IonicException - on instantiation in the context of a non-Windows operating systempublic final java.util.List<com.ionic.sdk.device.profile.DeviceProfile> loadAllProfiles(java.lang.String[] activeProfile)
throws com.ionic.sdk.error.IonicException
This method is overridden in order to handle processing of the v1.1 json type header. The subsequent byte stream is handled by the base implementation.
loadAllProfiles in interface com.ionic.sdk.device.profile.persistor.ProfilePersistorloadAllProfiles in class com.ionic.sdk.device.profile.persistor.DeviceProfilePersistorBaseactiveProfile - an out parameter that will provide the persisted active profilecom.ionic.sdk.error.IonicException - if v1.1 json header is not present, expect ISAGENT_ERROR
decrypt or json parsing can throw a sdk exception, expect
ISAGENT_PARSEFAILED, ISAGENT_MISSINGVALUE, ISAGENT_RESOURCE_NOT_FOUND,
or ISCRYPTO_ERRORpublic final void saveAllProfiles(java.util.List<com.ionic.sdk.device.profile.DeviceProfile> profiles,
java.lang.String activeProfile)
throws com.ionic.sdk.error.IonicException
This method is overridden in order to handle processing of the v1.1 json type header. The subsequent byte stream is handled by the base implementation.
saveAllProfiles in interface com.ionic.sdk.device.profile.persistor.ProfilePersistorsaveAllProfiles in class com.ionic.sdk.device.profile.persistor.DeviceProfilePersistorBaseprofiles - change the list of available profiles to this input parameter.activeProfile - change the active device profile to this input parameter.com.ionic.sdk.error.IonicException - write to disk can throw a ISAGENT_OPENFILE exception
saveAllProfilesToJson can throw an ISCRYPTO_ERROR on encrypt.