PC Review


Reply
Thread Tools Rate Thread

Assembly security

 
 
Yener
Guest
Posts: n/a
 
      22nd Feb 2008
Hi,

I have written a class library and i don't want unauthorized access to
some (or all) methods in this library. With some research , i found that
i can use strongly named assemblies for this purpose

Here is what i did:
1- I created a consumer assembly signed with myKeyFile.snk
2- I get public key of this assembly with secutil.exe
3- I added StrongNameIdentityPermissionAttribute to the methods of class
library with LinkDemand option and the public key of consumer assembly
4- I signed my class library with a key file also,otherwise i cannot
reference it to consumer assembly.

Now i get it work, but i got a question. With this method all the
consumers of class library should be signed with same key file.
What if consumer assembly has some other references that have
StrongNameIdentityPermissionAttribute with different public keys ?
as far as i know ,we cannot sign an assembly with more than one key file.

and is there any other method to get same functionality?

thanks so much
Yener
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly security Yener Microsoft C# .NET 0 22nd Feb 2008 06:04 PM
Assembly Security Octavius Khan Microsoft Dot NET Framework 2 3rd Feb 2007 11:04 PM
Assembly security =?Utf-8?B?SmFpc2FiYXJp?= Microsoft Dot NET Framework 4 3rd Apr 2006 05:30 PM
Assembly Security Evian Spring Microsoft Dot NET Framework 2 5th Feb 2006 09:55 PM
Assembly security budhA Microsoft C# .NET 1 24th Jan 2005 12:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.