Re: Strong Name: Key A OR Key B
From: Peter Rilling (peter@nospam.rilling.net)
Date: 03/27/03
- Next message: Dave Jarvis: "cannot create activex object, when called remotely"
- Previous message: Michel Gallant \(MVP\): "Download behavior via IE of Authenticode-signed assembly"
- In reply to: w2c@web2cad.de: "Strong Name: Key A OR Key B"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Dave Jarvis: "cannot create activex object, when called remotely"
- Previous message: Michel Gallant \(MVP\): "Download behavior via IE of Authenticode-signed assembly"
- In reply to: w2c@web2cad.de: "Strong Name: Key A OR Key B"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|