Index - All Packages - All Categories - All Classes

Class Lock

To login to a club, you ask the server for a Lock. If you send the right message to the Lock, it will return you a new KeyMaster with the authority of the club. Each subclass of Lock defines its own protocol for opening.

For each kind of Lock, there is a corresponding kind of LockSmith which creates it. Each ClubManager has a LockSmith sub-document, and when you ask the server for a Lock to that club, it asks the club`s LockSmith document Wrapper to create a newLock. The LockSmith then creates the corresponding kind of Lock. It may also use information stored in the LockSmith document, such as a password or scramblerName.

Package: Udanax-Gold
All Superclasses: Object Heaper
Immediate Subclasses: BooLock ChallengeLock MatchLock MultiLock WallLock
Protocols: Object
Categories: Xanadu-Be-Locks

Instance Methods

actualHashForEqual


create: loginID with: lockSmith



Overridden by: BooLock MatchLock WallLock

fetchLoginClubID

The ID of the club whose authority you can get by opening this lock.

isEqual: other


lockSmith

Essential. The LockSmith which made this Lock.

loginClubID


makeKeyMaster

The lock is opened - make the right KeyMaster


Index - All Packages - All Categories - All Classes