메소드 | 설명 | |
---|---|---|
__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 ) |
public __construct ( eZ\Publish\API\Repository\Values\User\User $user = null, array $roles = [] ) | ||
$user | eZ\Publish\API\Repository\Values\User\User | |
$roles | array |
public eraseCredentials ( ) |
public getAPIUser ( ) : eZ\Publish\API\Repository\Values\User\User | ||
리턴 | eZ\Publish\API\Repository\Values\User\User |
public getPassword ( ) : string | ||
리턴 | string | The password |
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 |
public getUsername ( ) : string | ||
리턴 | string | The username |
public isAccountNonExpired ( ) : boolean | ||
리턴 | boolean | true if the user's account is non expired, false otherwise |
public isAccountNonLocked ( ) : boolean | ||
리턴 | boolean | true if the user is not locked, false otherwise |
public isCredentialsNonExpired ( ) : boolean | ||
리턴 | boolean | true if the user's credentials are non expired, false otherwise |
public isEqualTo ( Symfony\Component\Security\Core\User\UserInterface $user ) | ||
$user | Symfony\Component\Security\Core\User\UserInterface |
public setAPIUser ( eZ\Publish\API\Repository\Values\User\User $user ) | ||
$user | eZ\Publish\API\Repository\Values\User\User |