enumCredential
enum Credential
Public API: explicitly declared with
@visibility public.What an IDENTIFIED clause gives the authentication plugin.
Mirrors the flags of the server's LEX_MFA: BY 'password' is a cleartext password the plugin hashes, BY RANDOM PASSWORD asks the server to generate one and return it, AS 'string' is the stored authentication string as is, MySQL 5.x BY PASSWORD 'hash' is a hash in the format of the default plugin, and a plugin named alone receives nothing. Source: https://dev.mysql.com/doc/refman/8.4/en/create-user.html#create-user-authentication, https://dev.mysql.com/doc/refman/5.7/en/create-user.html.
\SqlSemantics\Platform\MySql\Statement\Account\User\Credential::RandomPassword->name // => 'RandomPassword'Cases§
case Nonecase Passwordcase RandomPasswordcase Hashcase PasswordHashMethods§
public function written(): boolTells whether the credential carries a string operand.
Returns
boolTest cases 1
Called from 1
Calls 5
- class-const Credential::Password() line 36
- class-const Credential::Hash() line 36
- class-const Credential::PasswordHash() line 36
- class-const Credential::None() line 37
- class-const Credential::RandomPassword() line 37
Test cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 7
IdentificationTest::testInitialTellsAnInitialAuthenticationMethodcallsIdentificationTest::testPasswordTellsADefaultPluginPasswordcallsIdentificationTest::testReplaceableTellsANewPasswordcallsIdentificationTest::testRetainableTellsANewSecretcallsUserSpecificationTest::testAlteredRefusesFurtherFactorscallsUserSpecificationTest::testCreatedRefusesPasswordManagementWordscallsUserSpecificationTest::testGrantedAcceptsANamedAccountWithItsFirstMethodcalls
Relations§
Method calls 1
Constant reads 28
- class-const SqlSemantics\Platform\MySql\Lowering\Account\IdentificationRule::identification() packages/sql-semantics-mysql/src/Lowering/Account/IdentificationRule.php:69
- class-const SqlSemantics\Platform\MySql\Lowering\Account\IdentificationRule::identification() packages/sql-semantics-mysql/src/Lowering/Account/IdentificationRule.php:70
- class-const SqlSemantics\Platform\MySql\Lowering\Account\IdentificationRule::identification() packages/sql-semantics-mysql/src/Lowering/Account/IdentificationRule.php:71
- class-const SqlSemantics\Platform\MySql\Lowering\Account\IdentificationRule::identification() packages/sql-semantics-mysql/src/Lowering/Account/IdentificationRule.php:72
- class-const SqlSemantics\Platform\MySql\Lowering\Account\IdentificationRule::identification() packages/sql-semantics-mysql/src/Lowering/Account/IdentificationRule.php:73
- class-const SqlSemantics\Platform\MySql\Lowering\Account\IdentificationRule::identification() packages/sql-semantics-mysql/src/Lowering/Account/IdentificationRule.php:74
- class-const SqlSemantics\Platform\MySql\Lowering\Account\UserListRule::grant() packages/sql-semantics-mysql/src/Lowering/Account/UserListRule.php:205
- class-const SqlSemantics\Platform\MySql\Lowering\Account\UserListRule::grant() packages/sql-semantics-mysql/src/Lowering/Account/UserListRule.php:206
- class-const SqlSemantics\Platform\MySql\Lowering\Account\UserListRule::grant() packages/sql-semantics-mysql/src/Lowering/Account/UserListRule.php:207
- class-const SqlSemantics\Platform\MySql\Lowering\Account\UserListRule::grant() packages/sql-semantics-mysql/src/Lowering/Account/UserListRule.php:208
- class-const SqlSemantics\Platform\MySql\Lowering\Account\UserListRule::grant() packages/sql-semantics-mysql/src/Lowering/Account/UserListRule.php:209
- class-const SqlSemantics\Platform\MySql\Lowering\Account\UserStatementRule::definition() packages/sql-semantics-mysql/src/Lowering/Account/UserStatementRule.php:103
- class-const SqlSemantics\Platform\MySql\Statement\Account\AlterUser::deriveStatement() packages/sql-semantics-mysql/src/Statement/Account/AlterUser.php:99
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::__construct() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:41
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::__construct() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:41
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::__construct() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:42
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::password() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:50
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::password() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:50
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::replaceable() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:58
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::retainable() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:66
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::retainable() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:66
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::initial() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:74
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::render() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:87
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::render() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:88
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::render() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:89
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::render() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:90
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\Identification::render() packages/sql-semantics-mysql/src/Statement/Account/User/Identification.php:91
- class-const SqlSemantics\Platform\MySql\Statement\Account\User\UserSpecification::__construct() packages/sql-semantics-mysql/src/Statement/Account/User/UserSpecification.php:61