An extension of AuthProvider which is using as store
package |
Default |
---|
__construct()
authenticate( $arg0, $arg1) : void
The first argument is a JSON object containing information for authenticating the user. What this actually contains depends on the specific implementation. In the case of a simple username/password based authentication it is likely to contain a JSON object with the following structure:
{ "username": "tim", "password": "mypassword" }For other types of authentication it contain different information - for example a JWT token or OAuth bearer token.
If the user is successfully authenticated a object is passed to the handler in an \io.vertx.core.AsyncResult. The user object can then be used for authorisation.
array
callable
create( $arg0, $arg1) : \io\vertx\jphp\ext\auth\mongo\MongoAuth
JsonObject js = new JsonObject(); js.put(MongoAuth.PROPERTY_COLLECTION_NAME, createCollectionName(MongoAuth.DEFAULT_COLLECTION_NAME));
MongoClient
array
\io\vertx\jphp\ext\auth\mongo\MongoAuth
the created instance of {@link MongoAuth}s
getCollectionName() : string
string
the collectionName
getHashStrategy() : \io\vertx\jphp\ext\auth\mongo\HashStrategy
getPasswordCredentialField() : string
see |
\io\vertx\jphp\ext\auth\AuthProvider::authenticate.
Defaults to @see \io\vertx\jphp\ext\auth\mongo\MongoAuth |
---|---|
string
the passwordCredentialField
getPasswordField() : string
string
the passwordField
getPermissionField() : string
Permissions are expected to be saved as JsonArray
string
the permissionField
getRoleField() : string
string
the roleField
getSaltField() : string
string
the saltField
getUsernameCredentialField() : string
see |
\io\vertx\jphp\ext\auth\AuthProvider::authenticate.
Defaults to @see \io\vertx\jphp\ext\auth\mongo\MongoAuth |
---|---|
string
the usernameCredentialField
getUsernameField() : string
string
the usernameField
insertUser( $arg0, $arg1, $arg2, $arg3, $arg4) : void
string
string
array
array
callable
setCollectionName( $arg0) : $this
string
$this
the current instance itself for fluent calls
setHashAlgorithm( $arg0) : $this
string
$this
the current instance itself for fluent calls
setHashStrategy( $arg0) : $this
HashStrategy
$this
the current instance itself for fluent calls
setPasswordCredentialField( $arg0) : $this
see |
\io\vertx\jphp\ext\auth\AuthProvider::authenticate.
Defaults to @see \io\vertx\jphp\ext\auth\mongo\MongoAuth |
---|
string
$this
the current instance itself for fluent calls
setPasswordField( $arg0) : $this
string
$this
the current instance itself for fluent calls
setPermissionField( $arg0) : $this
Permissions are expected to be saved as JsonArray
string
$this
the current instance itself for fluent calls
setRoleField( $arg0) : $this
string
$this
the current instance itself for fluent calls
setSaltField( $arg0) : $this
string
$this
the current instance itself for fluent calls
setUsernameCredentialField( $arg0) : $this
see |
\io\vertx\jphp\ext\auth\AuthProvider::authenticate.
Defaults to @see \io\vertx\jphp\ext\auth\mongo\MongoAuth |
---|
string
$this
the current instance itself for fluent calls
setUsernameField( $arg0) : $this
string
$this
the current instance itself for fluent calls
PROPERTY_COLLECTION_NAME
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
PROPERTY_USERNAME_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
PROPERTY_ROLE_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
PROPERTY_PERMISSION_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
PROPERTY_PASSWORD_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
PROPERTY_CREDENTIAL_USERNAME_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
PROPERTY_CREDENTIAL_PASSWORD_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
PROPERTY_SALT_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
PROPERTY_SALT_STYLE
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_COLLECTION_NAME
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_USERNAME_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_PASSWORD_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_ROLE_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_PERMISSION_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_CREDENTIAL_USERNAME_FIELD
see | |
---|---|
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
DEFAULT_CREDENTIAL_PASSWORD_FIELD
see | |
---|---|
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
DEFAULT_SALT_FIELD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
ROLE_PREFIX
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|