Class TRALJWT

Unit

Declaration

type TRALJWT = class(TObject)

Description

Class for the JWT structure definition

Hierarchy

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function IsValidToken(const AValue: StringRAL = ''): boolean;
Protected function CreateToken(AHeader, APayload: StringRAL; var ASignature: StringRAL): StringRAL;
Protected function GetToken: StringRAL;
Protected function signHS256(const ASource: StringRAL): StringRAL;
Protected function signHS384(const ASource: StringRAL): StringRAL;
Protected function signHS512(const ASource: StringRAL): StringRAL;
Protected procedure SetToken(AValue: StringRAL);

Properties

Published property Header: TRALJWTHeader read FHeader write FHeader;
Published property Payload: TRALJWTParams read FPayload write FPayload;
Published property Signature: StringRAL read FSignature;
Published property SignSecretKey: StringRAL read FSignSecretKey write FSignSecretKey;
Published property Token: StringRAL read GetToken write SetToken;

Description

Methods

Public constructor Create;
 
Public destructor Destroy; override;
 
Public function IsValidToken(const AValue: StringRAL = ''): boolean;
 
Protected function CreateToken(AHeader, APayload: StringRAL; var ASignature: StringRAL): StringRAL;
 
Protected function GetToken: StringRAL;
 
Protected function signHS256(const ASource: StringRAL): StringRAL;
 
Protected function signHS384(const ASource: StringRAL): StringRAL;
 
Protected function signHS512(const ASource: StringRAL): StringRAL;
 
Protected procedure SetToken(AValue: StringRAL);
 

Properties

Published property Header: TRALJWTHeader read FHeader write FHeader;
 
Published property Payload: TRALJWTParams read FPayload write FPayload;
 
Published property Signature: StringRAL read FSignature;
 
Published property SignSecretKey: StringRAL read FSignSecretKey write FSignSecretKey;
 
Published property Token: StringRAL read GetToken write SetToken;
 


GitHub Repository
Generated by PasDoc 0.16.0.