PHP 클래스 Neos\Flow\Security\Account

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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() 공개 메소드

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