eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Authentication::AuthenticationData':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: AuthenticationData (in Authentication)


Inheritance:

   Object
   |
   +--Authentication::AuthenticationData
      |
      +--Authentication::BasicAuthenticator::BasicAuthenticationData
      |
      +--Authentication::DigestAuthenticator::DigestAuthenticationData

Package:
stx:goodies/authentication
Category:
Net-Authentication
Version:
rev: 1.8 date: 2022/08/01 08:03:11
user: erghilazghi
file: Authentication__AuthenticationData.st directory: goodies/authentication
module: stx stc-classLibrary: authentication

Description:


This is an abstract superclass.
Subclasses hold authentication data for a user (secret/password). 
Authenticators are repsonsible to authenticate this data.


[instance variables:]

[class variables:]

copyright

COPYRIGHT (c) 2006 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

instance creation
o  newForUser: user secret: aSecretString
create an instance of myself with secret

o  newMechanism: mechanismName
create an empty instance for a given mechanism

queries
o  isAbstract
Return if this class is an abstract class.
True is returned here for myself only; false for subclasses.
Abstract subclasses must redefine this again.

o  mechanismName
answer the name of the mechanism as known in the protocols

** This method must be redefined in concrete classes (subclassResponsibility) **


Instance protocol:

accessing
o  encodedSecret

o  encodedSecret: something

o  user: user secret: something
encode the secret for user and store it

** This method must be redefined in concrete classes (subclassResponsibility) **

comparing
o  = authenticationData
(comment from inherited method)
return true if the receiver and the arg have the same structure.
Notice:
This method is partially open coded (inlined) by the compiler(s)
identical objects are always considered equal.
redefining it may not work as expected.

o  hash
(comment from inherited method)
return an Integer useful as a hash key for the receiver.
This hash should return same values for objects with same
contents (i.e. use this to hash on structure)

storing
o  storeOn: aStream
(comment from inherited method)
store the receiver on aStream; i.e. print an expression which will
reconstruct the receiver.
Notice, that no self referencing or cyclic objects can be represented
in this format.
Use storeBinaryOn:, which handles these cases correctly.



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:44:48 GMT