Squeak Class Documentation category index | class index  
 
Password
  category: Network-Kernel
  superclass: Object
  subclasses:

"Hold a password. There are three ways to get the password.

If there is no password (sequence == nil), ask the user for it.

If the use supplied one during this session, return that. It is cleared at shutDown.

If sequence is a number, get the server passwords off the disk. File 'sqk.info' must be in the same folder 'Squeak.sources' file. Decode the file. Return the password indexed by sequence."

instance methods
  accessing
  cache:
passwordFor:
sequence
sequence:

  as yet unclassified
  decode:
serverPasswords

class methods
  as yet unclassified
  shutDown

instance methods
  accessing top  
 

cache:


 

passwordFor:

Returned the password from one of many sources. OK if send in a nil arg.


 

sequence


 

sequence:


  as yet unclassified top  
 

decode:

Xor with secret number -- just so file won't have raw password in it


 

serverPasswords

Get the server passwords off the disk and decode them. The file 'sqk.info' must be in the same folder as the Squeak application (VM) that is running this image. (Note: This code works even if you are running with no system sources file.)


class methods
  as yet unclassified top  
 

shutDown

Forget all cached passwords, so they won't stay in the image