Quantcast
Channel: How to name this key-oriented access-protection pattern? - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by Jeff for How to name this key-oriented access-protection pattern?

I propose naming this the Badge Idiom, signifying a token presented upon request proving possession of authority. I believe that this is a better metaphor than those revolving around the term Key in...

View Article



Answer by Puppy for How to name this key-oriented access-protection pattern?

There's other ways to do this, in a more general fashion, using inheritance. Here, class cake functions as both the keyhole and the key. Here, any class that inherits (could also be static inheritance)...

View Article

Answer by GManNickG for How to name this key-oriented access-protection pattern?

I like, in decreasing preference:passkey friend idiompasskey-door friend idiompass-door friend idiomkey-door friend idiompartial-friend idiomrestricted-friend idiomI moved away from the...

View Article

Answer by Nordic Mainframe for How to name this key-oriented...

SomeKey looks a bit like a Backstage pass to get into Bar::protectedMethod. So anything in that area should be good: passport idiom, watchword idiom, passkey idiom, VIP idiom..err classy access?

View Article

How to name this key-oriented access-protection pattern?

Apparently this key-oriented access-protection pattern:class SomeKey { friend class Foo; SomeKey() {} // possibly non-copyable too};class Bar {public: void protectedMethod(SomeKey); // only friends of...

View Article

Browsing latest articles
Browse All 5 View Live


Latest Images