Winsoft Authentication for iOS v1.0 Delphi XE8 - 10.3 Full Source Code

Winsoft Authentication for iOS v1.0 Delphi XE8 - 10.3 Full Source Code

Winsoft Authentication for iOS v1.0 Delphi XE8 - 10.3 Full Source Code
Winsoft Authentication for iOS v1.0 Delphi XE8 - 10.3 Full Source Code


Delphi authentication library for iOS.
uses LocalAuthentication framework
available for Delphi XE8 - 10.3
source code included in registered version
royalty free distribution in applications

type
  TAuthenticationPolicy = (apAny, apBiometric);

  TBiometryType = (btTouch, btFace);
  TBiometryTypes = set of TBiometryType;

  TAuthenticationErrorCode = (ecUnknown,
    ecAppCancel, ecUserCancel, ecSystemCancel,
    ecBiometryLockout, ecBiometryNotAvailable, ecBiometryNotEnrolled,
    ecAuthenticationFailed, ecInvalidContext, ecNotInteractive,
    ecPasscodeNotSet, ecUserFallback);

  TAuthenticationError = record
    property Code: LongInt read;
    property Domain: string read;
    property Error: NSError read;
    property ErrorCode: TAuthenticationErrorCode read;
    property IsError: Boolean read;
    property LocalizedDescription: string read;
  end;

  EAuthenticationError = class(Exception)
    property Error: TAuthenticationError read;
  end;

  TAuthenticationErrorEvent = procedure(Sender: TObject; Error: TAuthenticationError) of object;

  TAuthentication = class
    constructor Create;

    function CanEvaluatePolicy(out Error: TAuthenticationError): Boolean;
    procedure EvaluatePolicy(const Reason: string);
    procedure Invalidate;

    property BiometricUnlockReuse: Double read write; // in seconds
    property CancelTitle: string read write;
    property Context: LAContext read;
    property FallbackTitle: string read write;
    property InteractionAllowed: Boolean read write;
    property MaxBiometricUnlockReuse: Double read; // in seconds
    property Policy: TAuthenticationPolicy read write default apAny;
    property SupportedBiometry: TBiometryTypes read;

    property OnSuccess: TNotifyEvent read write;
    property OnError: TAuthenticationErrorEvent read write;
  end;
 




Only for V.I.P
Warning! You are not allowed to view this text.


Information
Users of Guests are not allowed to comment this publication.