PHP Класс Neos\Flow\Security\Account

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$accountIdentifier string
$authenticationProviderName string
$creationDate DateTime
$credentialsSource string
$expirationDate DateTime
$failedAuthenticationCount integer
$lastSuccessfulAuthenticationDate DateTime
$now Neos\Flow\Utility\Now
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$policyService Neos\Flow\Security\Policy\PolicyService
$roleIdentifiers of strings
$roles array

Открытые методы

Метод Описание
__construct ( ) Upon creation the creationDate property is initialized.
addRole ( Role $role ) : void Adds a role to this account
authenticationAttempted ( integer $authenticationStatus ) : void Sets the authentication status. Usually called by the responsible \Neos\Flow\Security\Authentication\AuthenticationManagerInterface
getAccountIdentifier ( ) : string Returns the account identifier
getAuthenticationProviderName ( ) : string Returns the authentication provider name this account corresponds to
getCreationDate ( ) : DateTime Returns the date on which this account has been created.
getCredentialsSource ( ) : mixed Returns the credentials source
getExpirationDate ( ) : DateTime Returns the date on which this account has expired or will expire. If no expiration date has been set, NULL is returned.
getFailedAuthenticationCount ( ) : integer
getLastSuccessfulAuthenticationDate ( ) : DateTime
getRoles ( ) : array Returns the roles this account has assigned
hasRole ( Role $role ) : boolean Return if the account has a certain role
isActive ( ) : boolean Returns TRUE if it is currently allowed to use this account for authentication.
removeRole ( Role $role ) : void Removes a role from this account
setAccountIdentifier ( string $accountIdentifier ) : void Set the account identifier
setAuthenticationProviderName ( string $authenticationProviderName ) : void Set the authentication provider name this account corresponds to
setCredentialsSource ( mixed $credentialsSource ) : void Sets the credentials source
setExpirationDate ( DateTime $expirationDate = null ) : void Sets the date on which this account will become inactive
setRoles ( array $roles ) : void Sets the roles for this account

Защищенные методы

Метод Описание
initializeRoles ( ) : void Initializes the roles field by fetching the role objects referenced by the roleIdentifiers

Описание методов

__construct() публичный Метод

Upon creation the creationDate property is initialized.
public __construct ( )

addRole() публичный Метод

Adds a role to this account
public addRole ( Role $role ) : void
$role Neos\Flow\Security\Policy\Role
Результат void

authenticationAttempted() публичный Метод

Sets the authentication status. Usually called by the responsible \Neos\Flow\Security\Authentication\AuthenticationManagerInterface
public authenticationAttempted ( integer $authenticationStatus ) : void
$authenticationStatus integer One of WRONG_CREDENTIALS, AUTHENTICATION_SUCCESSFUL
Результат void

getAccountIdentifier() публичный Метод

Returns the account identifier
public getAccountIdentifier ( ) : string
Результат string The account identifier

getAuthenticationProviderName() публичный Метод

Returns the authentication provider name this account corresponds to
public getAuthenticationProviderName ( ) : string
Результат string The authentication provider name

getCreationDate() публичный Метод

Returns the date on which this account has been created.
public getCreationDate ( ) : DateTime
Результат DateTime

getCredentialsSource() публичный Метод

Returns the credentials source
public getCredentialsSource ( ) : mixed
Результат mixed The credentials source

getExpirationDate() публичный Метод

Returns the date on which this account has expired or will expire. If no expiration date has been set, NULL is returned.
public getExpirationDate ( ) : DateTime
Результат DateTime

getFailedAuthenticationCount() публичный Метод

public getFailedAuthenticationCount ( ) : integer
Результат integer

getLastSuccessfulAuthenticationDate() публичный Метод

public getLastSuccessfulAuthenticationDate ( ) : DateTime
Результат DateTime

getRoles() публичный Метод

Returns the roles this account has assigned
public getRoles ( ) : array
Результат array

hasRole() публичный Метод

Return if the account has a certain role
public hasRole ( Role $role ) : boolean
$role Neos\Flow\Security\Policy\Role
Результат boolean

initializeRoles() защищенный Метод

Initializes the roles field by fetching the role objects referenced by the roleIdentifiers
protected initializeRoles ( ) : void
Результат void

isActive() публичный Метод

Returns FALSE if the account has expired.
public isActive ( ) : boolean
Результат boolean

removeRole() публичный Метод

Removes a role from this account
public removeRole ( Role $role ) : void
$role Neos\Flow\Security\Policy\Role
Результат void

setAccountIdentifier() публичный Метод

Set the account identifier
public setAccountIdentifier ( string $accountIdentifier ) : void
$accountIdentifier string The account identifier
Результат void

setAuthenticationProviderName() публичный Метод

Set the authentication provider name this account corresponds to
public setAuthenticationProviderName ( string $authenticationProviderName ) : void
$authenticationProviderName string The authentication provider name
Результат void

setCredentialsSource() публичный Метод

Sets the credentials source
public setCredentialsSource ( mixed $credentialsSource ) : void
$credentialsSource mixed The credentials source
Результат void

setExpirationDate() публичный Метод

Sets the date on which this account will become inactive
public setExpirationDate ( DateTime $expirationDate = null ) : void
$expirationDate DateTime
Результат void

setRoles() публичный Метод

Sets the roles for this account
public setRoles ( array $roles ) : void
$roles array
Результат void

Описание свойств

$accountIdentifier защищенное свойство

protected string $accountIdentifier
Результат string

$authenticationProviderName защищенное свойство

protected string $authenticationProviderName
Результат string

$creationDate защищенное свойство

protected DateTime $creationDate
Результат DateTime

$credentialsSource защищенное свойство

protected string $credentialsSource
Результат string

$expirationDate защищенное свойство

protected DateTime $expirationDate
Результат DateTime

$failedAuthenticationCount защищенное свойство

protected int $failedAuthenticationCount
Результат integer

$lastSuccessfulAuthenticationDate защищенное свойство

protected DateTime $lastSuccessfulAuthenticationDate
Результат DateTime

$now защищенное свойство

protected Now,Neos\Flow\Utility $now
Результат Neos\Flow\Utility\Now

$objectManager защищенное свойство

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Результат Neos\Flow\ObjectManagement\ObjectManagerInterface

$policyService защищенное свойство

protected PolicyService,Neos\Flow\Security\Policy $policyService
Результат Neos\Flow\Security\Policy\PolicyService

$roleIdentifiers защищенное свойство

of strings
protected $roleIdentifiers

$roles защищенное свойство

protected array $roles
Результат array