Property | Type | Description | |
---|---|---|---|
$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 | |||
$roleIdentifiers | of strings | ||
$roles | array |
Method | Description | |
---|---|---|
__construct ( ) | Upon creation the creationDate property is initialized. | |
addRole ( |
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 ( |
Return if the account has a certain role | |
isActive ( ) : boolean | Returns TRUE if it is currently allowed to use this account for authentication. | |
removeRole ( |
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 |
Method | Description | |
---|---|---|
initializeRoles ( ) : void | Initializes the roles field by fetching the role objects referenced by the roleIdentifiers |
public __construct ( ) |
public authenticationAttempted ( integer $authenticationStatus ) : void | ||
$authenticationStatus | integer | One of WRONG_CREDENTIALS, AUTHENTICATION_SUCCESSFUL |
return | void |
public getAccountIdentifier ( ) : string | ||
return | string | The account identifier |
public getAuthenticationProviderName ( ) : string | ||
return | string | The authentication provider name |
public getCreationDate ( ) : DateTime | ||
return | DateTime |
public getCredentialsSource ( ) : mixed | ||
return | mixed | The credentials source |
public getExpirationDate ( ) : DateTime | ||
return | DateTime |
public getFailedAuthenticationCount ( ) : integer | ||
return | integer |
public getLastSuccessfulAuthenticationDate ( ) : DateTime | ||
return | DateTime |
public getRoles ( ) : array |
||
return | array |
protected initializeRoles ( ) : void | ||
return | void |
public removeRole ( |
||
$role | ||
return | void |
public setAccountIdentifier ( string $accountIdentifier ) : void | ||
$accountIdentifier | string | The account identifier |
return | void |
public setAuthenticationProviderName ( string $authenticationProviderName ) : void | ||
$authenticationProviderName | string | The authentication provider name |
return | void |
public setCredentialsSource ( mixed $credentialsSource ) : void | ||
$credentialsSource | mixed | The credentials source |
return | void |
public setExpirationDate ( DateTime $expirationDate = null ) : void | ||
$expirationDate | DateTime | |
return | void |
protected string $authenticationProviderName | ||
return | string |
protected int $failedAuthenticationCount | ||
return | integer |
protected DateTime $lastSuccessfulAuthenticationDate | ||
return | DateTime |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
return | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected PolicyService,Neos\Flow\Security\Policy $policyService | ||
return |