parseExtensionArgs() public method

Parse the provider authentication policy arguments into the internal state of this object
public parseExtensionArgs ( $args, $strict = false ) : null
return null The data is parsed into the internal fields of this object.
コード例 #1
0
ファイル: PAPE.php プロジェクト: marcioyonamine/php-openid
 /**
  * Create an Auth_OpenID_PAPE_Response object from a successful
  * OpenID library response.
  *
  * @param success_response $success_response A SuccessResponse
  * from Auth_OpenID_Consumer::complete()
  *
  * @returns: A provider authentication policy response from the
  * data that was supplied with the id_res response.
  */
 static function fromSuccessResponse($success_response)
 {
     $obj = new Auth_OpenID_PAPE_Response();
     // PAPE requires that the args be signed.
     $args = $success_response->getSignedNS(Auth_OpenID_PAPE_NS_URI);
     if ($args === null || $args === array()) {
         return null;
     }
     $result = $obj->parseExtensionArgs($args);
     if ($result === false) {
         return null;
     } else {
         return $obj;
     }
 }