public function getAuthentication($uri)
    {

        // iterate over all authentications
        /** @var \AppserverIo\Appserver\Core\Api\Node\AuthenticationNode $authenticationNode */
        foreach ($this->getAuthentications() as $authenticationNode) {
            // if we found one with a matching URI we will return it
            if ($authenticationNode->getUri() === $uri) {
                return $authenticationNode;
            }
        }

        // we did not find anything
        return false;
    }
public function getAuthentication($uri)
    {

        // iterate over all authentications
        /** @var \AppserverIo\Appserver\Core\Api\Node\AuthenticationNode $authenticationNode */
        foreach ($this->getAuthentications() as $authenticationNode) {
            // if we found one with a matching URI we will return it
            if ($authenticationNode->getUri() === $uri) {
                return $authenticationNode;
            }
        }

        // we did not find anything
        return false;
    }
public function getAuthentication ( $ uri ) { // iterate over all authentications /** @var \AppserverIo\Appserver\Core\Api\Node\AuthenticationNode $authenticationNode */ foreach ( $ this -> getAuthentications ( ) as $ authenticationNode ) { // if we found one with a matching URI we will return it if ( $ authenticationNode -> getUri ( ) === $ uri ) { return $ authenticationNode ; } } // we did not find anything return false ; }
Will return the authentication node with the specified definition and if nothing could
be found we will return false.

@param string $uri The URI of the authentication in question

@return \AppserverIo\Appserver\Core\Api\Node\AuthenticationNode|boolean The requested authentication node
Will return the authentication node with the specified definition and if nothing could be found we will return false .