AppserverIo\Appserver\ServletEngine\Security\Auth\Callback\SecurityAssociationHandler::handle PHP Метод

handle() публичный Метод

Handles UsernameCallback and PasswordCallback types. A UsernameCallback name property is set to the Prinicpal->getName() value. A PasswordCallback password property is set to the credential value.
public handle ( AppserverIo\Collections\CollectionInterface $callbacks ) : void
$callbacks AppserverIo\Collections\CollectionInterface The collection with the callbacks
Результат void
    public function handle(CollectionInterface $callbacks)
    {
        // handle the registered callbacks
        foreach ($callbacks as $callback) {
            if ($callback instanceof NameCallback) {
                $callback->setName($this->principal->getName());
            } elseif ($callback instanceof PasswordCallback) {
                $callback->setPassword($this->credential);
            } else {
                throw new UnsupportedCallbackException('Unrecognized Callback');
            }
        }
    }
SecurityAssociationHandler