PHP 클래스 eZ\Publish\Core\MVC\Symfony\Security\User

상속: implements eZ\Publish\Core\MVC\Symfony\Security\UserInterface, implements Symfony\Component\Security\Core\User\EquatableInterface
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( eZ\Publish\API\Repository\Values\User\User $user = null, array $roles = [] )
__toString ( )
eraseCredentials ( ) Removes sensitive data from the user.
getAPIUser ( ) : eZ\Publish\API\Repository\Values\User\User
getPassword ( ) : string Returns the password used to authenticate the user.
getRoles ( ) : Role[] Returns the roles granted to the user.
getSalt ( ) : string Returns the salt that was originally used to encode the password.
getUsername ( ) : string Returns the username used to authenticate the user.
isAccountNonExpired ( ) : boolean Checks whether the user's account has expired.
isAccountNonLocked ( ) : boolean Checks whether the user is locked.
isCredentialsNonExpired ( ) : boolean Checks whether the user's credentials (password) has expired.
isEnabled ( ) : boolean Checks whether the user is enabled.
isEqualTo ( Symfony\Component\Security\Core\User\UserInterface $user )
setAPIUser ( eZ\Publish\API\Repository\Values\User\User $user )

메소드 상세

__construct() 공개 메소드

public __construct ( eZ\Publish\API\Repository\Values\User\User $user = null, array $roles = [] )
$user eZ\Publish\API\Repository\Values\User\User
$roles array

__toString() 공개 메소드

public __toString ( )

eraseCredentials() 공개 메소드

This is important if, at any given point, sensitive information like the plain-text password is stored on this object.
public eraseCredentials ( )

getAPIUser() 공개 메소드

public getAPIUser ( ) : eZ\Publish\API\Repository\Values\User\User
리턴 eZ\Publish\API\Repository\Values\User\User

getPassword() 공개 메소드

This should be the encoded password. On authentication, a plain-text password will be salted, encoded, and then compared to this value.
public getPassword ( ) : string
리턴 string The password

getRoles() 공개 메소드

public function getRoles() { return array( 'ROLE_USER' ); } Alternatively, the roles might be stored on a roles property, and populated in any number of different ways when the user object is created.
public getRoles ( ) : Role[]
리턴 Role[] The user roles

getSalt() 공개 메소드

This can return null if the password was not encoded using a salt.
public getSalt ( ) : string
리턴 string The salt

getUsername() 공개 메소드

Returns the username used to authenticate the user.
public getUsername ( ) : string
리턴 string The username

isAccountNonExpired() 공개 메소드

Internally, if this method returns false, the authentication system will throw an AccountExpiredException and prevent login.
또한 보기: AccountExpiredException
public isAccountNonExpired ( ) : boolean
리턴 boolean true if the user's account is non expired, false otherwise

isAccountNonLocked() 공개 메소드

Internally, if this method returns false, the authentication system will throw a LockedException and prevent login.
또한 보기: LockedException
public isAccountNonLocked ( ) : boolean
리턴 boolean true if the user is not locked, false otherwise

isCredentialsNonExpired() 공개 메소드

Internally, if this method returns false, the authentication system will throw a CredentialsExpiredException and prevent login.
또한 보기: CredentialsExpiredException
public isCredentialsNonExpired ( ) : boolean
리턴 boolean true if the user's credentials are non expired, false otherwise

isEnabled() 공개 메소드

Internally, if this method returns false, the authentication system will throw a DisabledException and prevent login.
또한 보기: DisabledException
public isEnabled ( ) : boolean
리턴 boolean true if the user is enabled, false otherwise

isEqualTo() 공개 메소드

public isEqualTo ( Symfony\Component\Security\Core\User\UserInterface $user )
$user Symfony\Component\Security\Core\User\UserInterface

setAPIUser() 공개 메소드

public setAPIUser ( eZ\Publish\API\Repository\Values\User\User $user )
$user eZ\Publish\API\Repository\Values\User\User