AuthServerLists Class


Description

Class that load the Authorization Server's keys from the asKeys.xml file.

Class Variables

  • Array keys: List of keys.

Methods

PUBLIC AuthServerLists __construct([$dir =""])

AuthServerLists class Constructor

  • String dir: directory where the configuration is defined

PUBLIC checkTokenKey($token,$digest): boolean

Function that returns FALSE if doesn't decrypt the message with the registered Authorization Server's keys or TRUE otherwise.

  • String token: plain token information.
  • String digest: encrypted token information.

PRIVATE loadASs($file): string

Auxiliar function that loads the keys from the file.

  • String file: file where the keys of the Authorization Servers are defined