An auth handler that provides HTTP Basic Authentication support.
package |
Default |
---|
__construct()
addAuthorities( $arg0) : $this
array
$this
a reference to this, so the API can be used fluently
addAuthority( $arg0) : $this
string
$this
a reference to this, so the API can be used fluently
create( $arg0, $arg1 = null) : \io\vertx\jphp\ext\web\handler\AuthHandler
param $authProvider [AuthProvider] the auth provider to use create($authProvider)
Create a basic auth handler, specifying realm
param $authProvider [AuthProvider] the auth service to use param $realm [string] the realm to use create($authProvider, $realm)
AuthProvider
string
\io\vertx\jphp\ext\web\handler\AuthHandler
the auth handler
handle( $arg0) : void
RoutingContext
parseCredentials( $arg0, $arg1) : void
RoutingContext
callable
DEFAULT_REALM
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|