M
Matthias Truxa
Hello NG,
I'm working on a licensing component. In my validation class I'd like to
temporarily cache this and that using static fields. However, in order to not
compromize security, I have to prevent any foreign code to access or change
these private static fields. Using reflection (and proper rights) anyone
could easily reflect these fields and change them, thus cracking my
validation procedure.
I experimented with the ReflectionPermission attribute, however, I wasn't
able to achieve what I need (or I don't understand the concept of these
permissions).
What is the best way to secure a single class in an assembly against any
caller who wants to access privates?
Thank you,
Matt
I'm working on a licensing component. In my validation class I'd like to
temporarily cache this and that using static fields. However, in order to not
compromize security, I have to prevent any foreign code to access or change
these private static fields. Using reflection (and proper rights) anyone
could easily reflect these fields and change them, thus cracking my
validation procedure.
I experimented with the ReflectionPermission attribute, however, I wasn't
able to achieve what I need (or I don't understand the concept of these
permissions).
What is the best way to secure a single class in an assembly against any
caller who wants to access privates?
Thank you,
Matt