Ntb\APIBasicAuthApp\APIAccessApp
The Ntb\APIBasicAuthApp\APIAccessApp class which prevents apps with their credentials, that should get access to the api
- Author: Andre Lohmann <lohmann.andre@gmail.com>
Synopsis
class APIAccessApp
extends DataObject
{
- // methods
- public ValidationResult checkSecret()
- public void generateAppSecret()
- public ValidationResult canLogIn()
- public void validate()
- public void changeSecret()
- public void onBeforeWrite()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $defaults
Methods
public
- canLogIn() — Check if the app is not blocked
- changeSecret() — Change secret. This will cause rehashing according to the `SecretEncryption` property.
- checkSecret() — Check if the passed secret matches the stored one (if the app is not blocked).
- generateAppSecret()
- onBeforeWrite() — Event handler called before writing to the database.
- validate() — Validate this App object.