Ntb\RestAPI\AuthFactory
Factory for different kind of rest authenticators.
- Author: Christian Blank <c.blank@notthatbad.net>
Synopsis
class AuthFactory
extends SS_Object
{
- // methods
- public static IAuth createAuth()
- public static string generate_token()
- public static String get_token()
Hierarchy
Extends
- SS_Object
Methods
public
- createAuth() — Returns a new instance of an authentication mechanism depending on the configured type.
- generate_token() — Generates an encrypted random token.
- get_token() — Returns the token from the request.