mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/EncryptionUtil.java
public static TerraHarvestMessage createSetEncryptionLevelMessage(EncryptionMode encryptionMode)
    {
        Multitype multitypeValue = SharedMessageUtils.convertObjectToMultitype(encryptionMode.toString());
        
        SimpleTypesMapEntry prop = SimpleTypesMapEntry.newBuilder()
                .setKey(RemoteSettings.KEY_ENCRYPTION_MODE)
                .setValue(multitypeValue).build();
        
        SetPropertyRequestData setPropRequest = SetPropertyRequestData.newBuilder()
                .setPid(RemoteSettings.PID)
                .addProperties(prop).build();
        
        ConfigAdminNamespace.Builder configNamespaceBuilder = ConfigAdminNamespace.newBuilder()
                .setType(ConfigAdminMessageType.SetPropertyRequest)
                .setData(setPropRequest.toByteString());
        
        TerraHarvestMessage message = TerraHarvestMessageHelper.createTerraHarvestMsg(
                Namespace.ConfigAdmin, configNamespaceBuilder);
        return message;
    }
/**
     * Method that creates a {@link TerraHarvestMessage} that can be sent to change the encryption level of the 
     * controller.
     * 
     * @param encryptionMode
     *      encryption mode to set the controller to.
     * @return
     *      {@link TerraHarvestMessage} containing the needed information to change the encryption level of the 
     *      controller.
     */
Method that creates a  TerraHarvestMessage that can be sent to change the encryption level of the
controller.

@param encryptionMode
encryption mode to set the controller to.
@return
TerraHarvestMessage containing the needed information to change the encryption level of the
controller.
Method that creates a TerraHarvestMessage that can be sent to change the encryption level of the controller . @param encryptionMode encryption mode to set the controller to . @return TerraHarvestMessage containing the needed information to change the encryption level of the controller .
public static TerraHarvestMessage createSetEncryptionLevelMessage(EncryptionMode encryptionMode)
    {
        Multitype multitypeValue = SharedMessageUtils.convertObjectToMultitype(encryptionMode.toString());
        SimpleTypesMapEntry prop = SimpleTypesMapEntry.newBuilder()
                .setKey(RemoteSettings.KEY_ENCRYPTION_MODE)
                .setValue(multitypeValue).build();
        SetPropertyRequestData setPropRequest = SetPropertyRequestData.newBuilder()
                .setPid(RemoteSettings.PID)
                .addProperties(prop).build();
        ConfigAdminNamespace.Builder configNamespaceBuilder = ConfigAdminNamespace.newBuilder()
                .setType(ConfigAdminMessageType.SetPropertyRequest)
                .setData(setPropRequest.toByteString());
        TerraHarvestMessage message = TerraHarvestMessageHelper.createTerraHarvestMsg(
                Namespace.ConfigAdmin, configNamespaceBuilder);
        return message;
    }
public static TerraHarvestMessage createSetEncryptionLevelMessage ( EncryptionMode encryptionMode ) { Multitype multitypeValue = SharedMessageUtils . convertObjectToMultitype ( encryptionMode . toString ( ) ) ; SimpleTypesMapEntry prop = SimpleTypesMapEntry . newBuilder ( ) . setKey ( RemoteSettings . KEY_ENCRYPTION_MODE ) . setValue ( multitypeValue ) . build ( ) ; SetPropertyRequestData setPropRequest = SetPropertyRequestData . newBuilder ( ) . setPid ( RemoteSettings . PID ) . addProperties ( prop ) . build ( ) ; ConfigAdminNamespace . Builder configNamespaceBuilder = ConfigAdminNamespace . newBuilder ( ) . setType ( ConfigAdminMessageType . SetPropertyRequest ) . setData ( setPropRequest . toByteString ( ) ) ; TerraHarvestMessage message = TerraHarvestMessageHelper . createTerraHarvestMsg ( Namespace . ConfigAdmin , configNamespaceBuilder ) ; return message ; }
Method that creates a {@link TerraHarvestMessage} that can be sent to change the encryption level of the
 controller.
Method that creates a { @link TerraHarvestMessage } that can be sent to change the encryption level of the controller .