Class Authority
Datenbanktabelle für die Speicherung der Zugangsdaten in einer SQL-Tabelle. Der Zugriff erfolgt über die PDO-Klasse. Somit können alle von PDO unterstützen Datenbanken verwendet werden.
- Das Feld alvine_entity_id entspricht der ID des Benutzers
- Das Feld alvine_name entspricht einer Bezeichnung des Benutzers
CREATE TABLE IF NOT EXISTS `alvine_credential` ( `alvine_name` varchar(255) collate utf8_unicode_ci NOT NULL COMMENT 'Name of User', `alvine_entity_id` varchar(36) collate utf8_unicode_ci NOT NULL COMMENT 'ID of User', `alvine_password` varchar(255) collate utf8_unicode_ci NOT NULL COMMENT 'Password', PRIMARY KEY (`alvine_id`), UNIQUE KEY `alvine_unique` (`alvine_name`,`alvine_id`), KEY `alvine_name` (`alvine_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Credential';
Für die Mitgliedchaft in einer Gruppe muss die Tabelle alvine_membership in der MYSql Datenbank angelegt werden.
- Das Feld alvine_entity_id entspricht der ID des Benutzers
- Das Feld alvine_group_id entspricht der ID der Gruppe
CREATE TABLE `alvine_membership` ( `alvine_entity_id` VARCHAR( 36 ) NOT NULL COMMENT 'UUID of Entity', `alvine_group_id` VARCHAR( 36 ) NOT NULL COMMENT 'UUID of Group', PRIMARY KEY ( `alvine_entity_id` , `alvine_group_id` ) ) ENGINE = INNODB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Membership';
- Alvine\Core\Alvine implements Serializable uses Alvine\Core\SerializableImplementation
- Alvine\Security\Authentication\Authority implements Alvine\Core\InstantiableFromProperties
- Alvine\Security\Authentication\Authority\Database\Authority
Namespace: Alvine\Security\Authentication\Authority\Database
Package: Alvine\Security\Authentication\Authority\Database
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20110904
See:
Link: Alvine
Located at security/authentication/authority/database/Authority.class.php
Package: Alvine\Security\Authentication\Authority\Database
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20110904
See:
Alvine\I18n\Util\PluralRules
Link: Alvine
Located at security/authentication/authority/database/Authority.class.php
public
|
#
authenticate(
Autorisiert eine Identität |
public static
|
|
public
boolean
|
#
isMember(
Mitgliedschaft in der Datenbanktabelle prüfen |
__construct(),
attachGroup(),
detachGroup(),
getName(),
isVerified()
|
__call(),
__clone(),
__get(),
__set(),
__toString(),
equals(),
getClass(),
getClone(),
getClosure(),
getHashCode(),
getID(),
getShortID(),
isCallable(),
isInstanceOf(),
propertyExists()
|
serialize(),
unserialize()
|
checkAndAdjustSerialisation(),
serialize(),
unserialize()
|
string |
CREDENTIAL_TABLE
Tabellenname |
#
'alvine_credential'
|
string |
MEMBERSHIP_TABLE
Tabellenname |
#
'alvine_membership'
|
string |
NAMEFIELD
Name des Subject (nicht Benutzername) |
#
'alvine_name'
|
string |
ENTITYIDFIELD
User-ID-Field |
#
'alvine_entity_id'
|
string |
GROUPFIELD
User-ID-Field |
#
'alvine_group_id'
|
string |
PASSWORDFIELD
Passwort |
#
'alvine_password'
|
DEFAULT_NAME
|
APIVERSION,
IDENTIFICATION,
SERIALVERSION,
VERSION
|
$name,
$uri,
$volatileVerified
|
$hash,
$properties
|