{
    "mode": "perldoc",
    "parameter": "Net::OpenID::Extension",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AOpenID%3A%3AExtension/json",
    "generated": "2026-06-15T14:44:41Z",
    "sections": {
        "NAME": {
            "content": "Net::OpenID::Extension - Base class for OpenID extensions\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 1.20\n",
            "subsections": []
        },
        "METHODS": {
            "content": "CLASS->namespaceuris\nReturn a hashref mapping namespace URIs to the aliases you will use to refer to them in the\nother methods. For example:\n\nreturn {\n'http://example.com/some-extension' => 'someext',\n};\n\nCLASS->newrequest(@parameters)\nWhen your extension is added to the Net::OpenID::ClaimedIdentity object in consumer-land, this\nmethod will be called to create a request object. Any additional arguments passed when adding\nthe extension will be passed through verbatim in @parameters.\n\nThe object you return here should at minimum provide the interface defined in\nNet::OpenID::ExtensionMessage.\n\nYou can return \"undef\" here if you have nothing useful to return.\n\nCLASS->receivedrequest(\\%args)\nIn server-land, when a caller asks for the request object for your extension this method will be\ncalled to create a request object. %args maps the aliases you returned from the \"namespaceuris\"\nmethod to a hashref of the key-value pairs provided in that namespace.\n\nThe object you return here should at minimum provide the interface defined in\nNet::OpenID::ExtensionMessage, and should behave identically to the corresponding object\nreturned from \"newrequest\".\n\nYou can return \"undef\" here if you have nothing useful to return.\n\nCLASS->newresponse(@parameters)\nWhen your extension is added to the response in server-land, this method will be called to\ncreate a response object. Any additional arguments passed when adding the extension will be\npassed through verbatim in @parameters.\n\nYou can return \"undef\" here if you have nothing useful to return.\n\nCLASS->receivedresponse(\\%args)\nIn consumer-land, when a caller asks for the request object for your extension in\nNet::OpenID::VerifiedIdentity this method will be called to create a response object. %args maps\nthe aliases you returned from the \"namespaceuris\" method to a hashref of the key-value pairs\nprovided in that namespace.\n\nYou can return \"undef\" here if you have nothing useful to return.\n",
            "subsections": []
        }
    },
    "summary": "Net::OpenID::Extension - Base class for OpenID extensions",
    "flags": [],
    "examples": [],
    "see_also": []
}