Unit Authentication

From Ultibo.org
Revision as of 01:15, 27 April 2018 by Ultibo (Talk | contribs)

Jump to: navigation, search

Return to Unit Reference


Description


Ultibo Authentication interface unit

To be documented

Constants



Authenticator flag AUTHENTICATOR_FLAG_*
AUTHENTICATOR_FLAG_NONE = $00000000;  


Type definitions


None defined

Class definitions



Authentication specific classes

TAuthenticator = class(TObject)
TNullAuthenticator = class(TAuthenticator)

Authenticator

TAuthenticator = class(TObject)

public
constructor Create;  
destructor Destroy; override;  
private
FLock:TCriticalSectionHandle;  
 
FFlags:LongWord;  
 
procedure SetFlags(AFlags:LongWord);  
protected
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
public
property Flags:LongWord read FFlags write SetFlags;  
 
function UsernamePrompt:String; virtual;  
function PasswordPrompt(const AUsername:String):String; virtual;  
 
function CheckUsername(const AUsername:String):LongWord; virtual;  
function CheckPassword(const AUsername,APassword:String):LongWord; virtual;  

Null authenticator

TNullAuthenticator = class(TAuthenticator)

Note: An authenticator module that accepts any username and password.
 
public
function UsernamePrompt:String; override;  
function PasswordPrompt(const AUsername:String):String; override;  
 
function CheckUsername(const AUsername:String):LongWord; override;  
function CheckPassword(const AUsername,APassword:String):LongWord; override;  


Public variables


None defined

Function declarations



Initialization functions

procedure AuthInit;
Description: To be documented
Note None documented


Return to Unit Reference