mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/EncryptionUtil.java
public static TerraHarvestMessage createEncryptionInfoMessage(final EncryptionInfoMessageType type, 
            final Message message)
    {       
        EncryptionInfoNamespace.Builder namespaceMsg = EncryptionInfoNamespace.newBuilder().setType(type);
        
        if (message != null)
        {
            namespaceMsg.setData(message.toByteString());
        }
        
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.
                createTerraHarvestMsg(Namespace.EncryptionInfo, namespaceMsg);
        
        return thMessage;
    }
/**
     * Build a terra harvest message with the specified encryption info message.
     * 
     * @param type
     *      {@link EncryptionInfoMessageType}
     * @param message
     *      EncryptionInfo message to be added to the terra harvest message.
     * @return
     *      Return the complete terra harvest message containing the encryption info message.
     */
Build a terra harvest message with the specified encryption info message.

@param type
EncryptionInfoMessageType
@param message
EncryptionInfo message to be added to the terra harvest message.
@return
Return the complete terra harvest message containing the encryption info message.
Build a terra harvest message with the specified encryption info message . @param type EncryptionInfoMessageType @param message EncryptionInfo message to be added to the terra harvest message . @return Return the complete terra harvest message containing the encryption info message .
public static TerraHarvestMessage createEncryptionInfoMessage(final EncryptionInfoMessageType type, 
            final Message message)
    {       
        EncryptionInfoNamespace.Builder namespaceMsg = EncryptionInfoNamespace.newBuilder().setType(type);
        if (message != null)
        {
            namespaceMsg.setData(message.toByteString());
        }
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.
                createTerraHarvestMsg(Namespace.EncryptionInfo, namespaceMsg);
        return thMessage;
    }
public static TerraHarvestMessage createEncryptionInfoMessage ( final EncryptionInfoMessageType type , final Message message ) { EncryptionInfoNamespace . Builder namespaceMsg = EncryptionInfoNamespace . newBuilder ( ) . setType ( type ) ; if ( message != null ) { namespaceMsg . setData ( message . toByteString ( ) ) ; } TerraHarvestMessage thMessage = TerraHarvestMessageHelper . createTerraHarvestMsg ( Namespace . EncryptionInfo , namespaceMsg ) ; return thMessage ; }
Build a terra harvest message with the specified encryption info message.
Build a terra harvest message with the specified encryption info message .