Re: Strong Name: Key A OR Key B

From: Peter Rilling (peter@nospam.rilling.net)
Date: 03/27/03


From: "Peter Rilling" <peter@nospam.rilling.net>
Date: Wed, 26 Mar 2003 21:37:05 -0800


You can protect assemblies based on the signed key using the declarative
security attribute StrongNameIdentityPermissionAttribute class.

For example,

[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand,

PublicKey="00240000048000009400000006020000002400005253413100040000010001005
" +

"38a4a19382e9429cf516dcf1399facdccca092a06442efaf9ecaca33457be26ee0073c6bde5
" +

"1fe0873666a62459581669b510ae1e84bef6bcb1aff7957237279d8b7e0e25b71ad39df3684
" +

"5b7db60382c8eb73f289823578d33c09e48d0d2f90ed4541e1438008142ef714bfe604c41a4
" +
 "957a4f6e6ab36b9715ec57625904c6")]

<w2c@web2cad.de> wrote in message
news:1b3801c2eebd$44becda0$a501280a@phx.gbl...
> Hello,
>
> sorry for posting this again, but now I have activated my
> companies MSDN account.
>
> 1. I want to know whether it's possible to permit access
> to a certain class, methode or assembly only for other
> assemblies signed with key A OR B. So if a class wants to
> call a protected methode it must be signed either with
> key A or B. Assemlies not signed with A or B shouldn't be
> allowed to call the protected assembly/class/methode.
>
> 2. Is there a way to determin the calling methode (or
> class) from within the callee. I want to get the methode
> one level higher in the call stack.
>
> Thank You
> Stefan



Relevant Pages

  • RE: How to add a Assembly use protection
    ... particular assemblies to call it, I think we can consider using the .NET ... CAS security setting. ... #StrongNameIdentityPermissionAttribute Class ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.dotnet.general)
  • Strong Name: Key A OR Key B
    ... I want to know whether it's possible to permit access ... methode or assembly only for other ... assemblies signed with key A OR B. So if a class wants to ...
    (microsoft.public.dotnet.security)
  • Strong Name: Key A OR Key B
    ... If you know the PublicKeyToken for the valid assemblies, ... Then parse the FullName property to see if the ... methode or assembly only for other ...
    (microsoft.public.dotnet.security)
  • Re: Protecting Assemblies
    ... Check out the StrongNameIdentityPermissionAttribute class. ... it so that only your, trusted, assemblies can bind to your assemblies. ... someone tries to reference your assemblies, ...
    (microsoft.public.dotnet.general)