I'm working to implement a SAML service. As such, I believe the identity provider is supposed to digitally sign the SAML assertion using the service provider's public key before sending the assertion to the service provider (which the service provider verifies using their private key). However, I'm having a hard time finding any exampl...
I've recently been working with someone else's code and I realized that this individual has a very different philosophy regarding private variables and method parameters than I do. I generally feel that private variables should only be used in a case when:
The variable needs to be stored for recall later.
The data stored in the variab...
in a c++ class declaration, you can label a group of members as private or public, e.g.
private:
int x;
double y;
seems like there's no way to do this in c#. am I wrong?
...
Hi,
I have an assembly (it's a DLL) I want to know if it's private or public??
How can I do that, it exists a program to do that? or Visual Studio can tell you?
Thanks
...
I have a data class in my application. My application will never be used as a public API and I will be the only person developing code within my project.
I am trying to save every ounce of processor and memory power I can.
Is it a bad idea to make my data members in my data class to have public/protected/default protection so that...
how to setup the unit test if the constructor is private (.NET)?
public class Class2
{
private Class2() //private constructor
{
}
public static Class2 getInstance()
{
if (x == null)
x= new Class2();
return x;
}
}
namespace TestUnit
{
[TestFixture]
public class Class2Tester
{
private Class2 test;
[SetUp()]
pub...
I have a Java main application running on my PC that can send XML data to a servelet and recieve XML data back.
http://iamt.wisconsin.gov/IAM-WiEntUser/WiEntUserService?xml=
I can use https://iamt.wisconsin.gov/IAM-WiEntUser/WiEntUserService?xml= from IE and Firefox because I they allowed me to load the private certificate.
I want to u...
This question is merely to settle a wager, because I already know the answer and this seemed quicker than reading the standard:
Are 'private' or 'public' keywords in ANSI C (or any other C for that matter), or were they only added in C++ (and Java, C#, ...)?
...
What is the use of having destructor as private?
...
What is considered best practice to generate a URL that is publicly accessible, but shared via a side channel, so that it is in practice private to the group sharing it?
Something like:
http://example.com/club/XX-XX-XX-XX
http://example.com/club/YY-YY-YY-YY
Where XX-XX-XX-XX shared among one group, and YY-YY-YY-YY is shared by another...
Hi All,
Can you tell me why the following code is giving me the following error - call of overloaded "C(int)" is ambiguous
I would think that since C(char x) is private, only the C(float) ctor is visible from outside and that should be called by converting int to float.
But that's not the case.
class C
{
C(char x)
{
}
p...
As I develop code, I often want to unit test some of the building blocks of a class even if they are normally private. If my unit tests are inside the project, I can use "Friend" to accomplish this and still keep the functions private for normal use. But I would rather move my NUnit tests into their own separate project(s). How do I achi...
Hi guys,
Two simple questions about makecert command,
Suppose I am using the following command,
makecert -n "CN=PowerShell Local Certificate Root" -a sha1 -eku 1.3.6.1.5.5.7.3.3 -r -sv root.pvk root.cer -ss Root -sr localMachine
my confusion is, will private key automatically registered somewhere in cerficate manager or the private...
In xCode 3, I defined private instance variables in a class. When I directly access the private variables in the client codes, why does the compiler just show me a warning, not an error? The code can still run. The warning says this maybe a hard error in the future. What does the "hard error" mean? Thanks.
...
I'm just trying to get the hang of separate units to make my code more encapsulated.
I'm trying to get the public/private declarations of my methods sorted out, so I can call them from other units that use testunit. In this example I want to make hellofromotherunit public, but stickletters private.
unit testunit;
interface
uses
...
Is it possible to access private members of a class in c++.
provided you don't have a friend
function and You don't have access to
the class definition
...
I am wondering if it is good practice to call public functions also internally.
By public functions I mean all methods/functions that you created explicitly to be called from other objects, modules, etc. For example methods that you would typically put in a Java interface definition. By calling internally, I mean in the same module, cl...
If developers perform unit testing in their development environment before checking in to source control should that environment (including test failures) be shared?
Should all builds be public?
...
Is it worth extracting private methods for code that only gets called once in a class, or leaving the code in the parent method (maybe) with a comment that says what it does?
...
I have a private folder with thousand of users' folders which only be accessible by the correct user. No user can access other users' folders. I can only think of creating a web.config authorization rules for each of the users' subfolder. In this case, I don't have to add every rules for each user in one web.config files.
I am wondering...