internal

How can I secure internal roles in azure (SSL at minimum)

不想你离开。 提交于 2019-12-02 02:34:50
问题 I am working on a HIPAA cloud project and am implementing a Key Store as a central repository for all of the key pairs for PHI(Private Health Information) encryption... I am not worried about the actual data because it will be encrypted at rest and in transit. However when a worker or webrole needs to work with the data they need to decrypt and reencrypt it (if they do updates). That's where the key Store comes into play. However, I don't want this internal service exposed and I also need it

How can I secure internal roles in azure (SSL at minimum)

泪湿孤枕 提交于 2019-12-02 02:30:14
I am working on a HIPAA cloud project and am implementing a Key Store as a central repository for all of the key pairs for PHI(Private Health Information) encryption... I am not worried about the actual data because it will be encrypted at rest and in transit. However when a worker or webrole needs to work with the data they need to decrypt and reencrypt it (if they do updates). That's where the key Store comes into play. However, I don't want this internal service exposed and I also need it to be SSLed, because sending keys in the clear, even inside a virtual network of roles wouldn't pass a

How to limit subclassing of public abstact class to types in same assembly and thus allow protected members typed to internal types

江枫思渺然 提交于 2019-12-01 17:48:15
This question is similar to c# internal abstract class, how to hide usage outside but my motiviation is different. Here is the scenario I started with the following: internal class InternalTypeA {...} public class PublicClass { private readonly InternalTypeA _fieldA; ... } The above compiles fine. But then I decided that I should extract a base class and tried to write the following: public abstract class PublicBaseClass { protected readonly InternalTypeA _fieldA; ... } And thus the problem, the protected member is visible outside the assembly but is of an internal type, so it won't compile.

android - storing image cache in internal memory and reusing it

随声附和 提交于 2019-12-01 14:29:07
in my app i am trying to store the images in internal memory so that it can be used only in my app and cannot be seen in other ways. In the following way i have stored the image cache in internal memory File cacheDir = getApplicationContext().getDir("", Context.MODE_PRIVATE); File fileWithinMyDir = new File(cacheDir, ""); for(int i = 0; i < img.size(); i++) { String filename = String.valueOf(img.get(i).hashCode()); String urlString = img.get(i); String PATH = fileWithinMyDir + filename; DownloadFromUrl(PATH, urlString); img_path.add(PATH); } private void DownloadFromUrl(String fileName, String

android - storing image cache in internal memory and reusing it

两盒软妹~` 提交于 2019-12-01 12:37:30
问题 in my app i am trying to store the images in internal memory so that it can be used only in my app and cannot be seen in other ways. In the following way i have stored the image cache in internal memory File cacheDir = getApplicationContext().getDir("", Context.MODE_PRIVATE); File fileWithinMyDir = new File(cacheDir, ""); for(int i = 0; i < img.size(); i++) { String filename = String.valueOf(img.get(i).hashCode()); String urlString = img.get(i); String PATH = fileWithinMyDir + filename;

How to save parsed text file in internal/external storage in android

泪湿孤枕 提交于 2019-12-01 07:34:11
Currently I am working in project where I need to parse a remote text file and store it in local storage (internal/external). I am able to parse the text file but unable to store it in SDCARD. Here is my code : package com.exercise.AndroidInternetTxt; import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.MalformedURLException; import java.net.URL; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; import android

How to save parsed text file in internal/external storage in android

ぃ、小莉子 提交于 2019-12-01 05:07:04
问题 Currently I am working in project where I need to parse a remote text file and store it in local storage (internal/external). I am able to parse the text file but unable to store it in SDCARD. Here is my code : package com.exercise.AndroidInternetTxt; import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.MalformedURLException; import java.net.URL;

Access to internal classes from another project

▼魔方 西西 提交于 2019-12-01 03:36:40
I'm wondering if it's possible to access internal class variables from other project in c#. I know that is impossible in regular use, I explain it below. I have one project (P1 [class library]) containing those classes... internal class Settings { public static long size {get;set;} public static DoSomethingInternalOnly() { } } public class Program { public static Main() { } } ... and another one (P2) containing: public class Program { public static Main() { //P1.CopyOfSettings.size = 2048; ??? } } In Settings class I store internal variables (and methods) for app which cannot be visible from

Basic internal links don't work in honeycomb app?

空扰寡人 提交于 2019-12-01 03:27:25
Internal links do not seem to be working in Android version 3 in my published app. My app targets Froyo at this point. The app works fine on tons of phones, but my new Galaxy Tab can't handle the internal links!! It can handle them within an html page, ie: <a href="#faq">Go to faq</a> <!-- goes to FAQ link --> Goes to the tag lower on the same page: <a name="faq" id="faq"></a> However from a another html file, ie the index page, the link no longer works in Honeycomb: <a href="mainpage.html#faq">FAQ</a> <!-- goes to error page --> Also, if I go to an internal link, and from there follow a link

How to create an interface that keeps some methods internal for testing in C#?

十年热恋 提交于 2019-12-01 01:35:21
问题 Consider the following class public class Entity { public void Foo() { ... } internal void Bar() { ... } } As you see it has a public method and an internal method. Now, I would like to create an interface which will allow me to mock this class in tests (both in this assembly and in others). I rewrite my code as following: public interface IEntity { void Foo(); } internal class Entity : IEntity { public void Foo() { ... } public void Bar() { ... } } However, this creates another issue. When