Difference between revisions of "Unit Authentication"
From Ultibo.org
Line 34: | Line 34: | ||
− | '''Authenticator | + | '''Authenticator''' |
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> |
Revision as of 04:49, 8 March 2017
Return to Unit Reference
Contents
Description
Ultibo Authentication interface unit
To be documented
Constants
Authenticator flag constants
AUTHENTICATOR_FLAG_*
AUTHENTICATOR_FLAG_NONE = $00000000;
|
Type definitions
None defined
Class definitions
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