Public Member Functions | |
__construct (HttpUrl $claimedId, HttpClient $httpClient) | |
getRealId () | |
getServer () | |
isIdentifierSelect () | |
setIdentifierSelect ($bool) | |
Static Public Member Functions | |
static | create (HttpUrl $claimedId, HttpClient $httpClient) |
Public Attributes | |
const | HEADER_CONT_TYPE = 'application/xrds+xml' |
const | HEADER_XRDS_LOCATION = 'x-xrds-location' |
const | HEADER_ACCEPT = 'text/html,application/xhtml+xml,application/xml,application/xrds+xml' |
const | IDENTIFIER_SELECT = 'http://specs.openid.net/auth/2.0/identifier_select' |
Protected Member Functions | |
parseHTML ($content) | |
parseXRDS ($content) | |
loadXRDS ($url) | |
Private Attributes | |
$claimedId = null | |
$realId = null | |
$server = null | |
$httpClient = null | |
$isIdentifierSelect = false |
Definition at line 15 of file OpenIdCredentials.class.php.
OpenIdCredentials::__construct | ( | HttpUrl $ | claimedId, | |
HttpClient $ | httpClient | |||
) |
Definition at line 28 of file OpenIdCredentials.class.php.
References HttpRequest::create(), HttpMethod::get(), Url::isValid(), loadXRDS(), HttpUrl::makeComparable(), parseHTML(), parseXRDS(), and HttpClient::send().
static OpenIdCredentials::create | ( | HttpUrl $ | claimedId, | |
HttpClient $ | httpClient | |||
) | [static] |
Definition at line 76 of file OpenIdCredentials.class.php.
Referenced by getRealId(), parseHTML(), and parseXRDS().
OpenIdCredentials::getRealId | ( | ) |
Definition at line 87 of file OpenIdCredentials.class.php.
References create(), and isIdentifierSelect().
Referenced by OpenIdConsumer::makeCheckIdRequest().
OpenIdCredentials::getServer | ( | ) |
Definition at line 99 of file OpenIdCredentials.class.php.
Referenced by OpenIdConsumer::makeCheckIdRequest().
OpenIdCredentials::isIdentifierSelect | ( | ) |
Definition at line 104 of file OpenIdCredentials.class.php.
Referenced by getRealId(), and setIdentifierSelect().
OpenIdCredentials::loadXRDS | ( | $ | url | ) | [protected] |
Definition at line 186 of file OpenIdCredentials.class.php.
References HttpUrl::create(), HttpRequest::create(), HttpMethod::get(), and parseXRDS().
Referenced by __construct(), and parseHTML().
OpenIdCredentials::parseHTML | ( | $ | content | ) | [protected] |
Definition at line 119 of file OpenIdCredentials.class.php.
References HttpUrl::create(), StringInputStream::create(), create(), and loadXRDS().
Referenced by __construct().
OpenIdCredentials::parseXRDS | ( | $ | content | ) | [protected] |
Definition at line 177 of file OpenIdCredentials.class.php.
References create().
Referenced by __construct(), and loadXRDS().
OpenIdCredentials::setIdentifierSelect | ( | $ | bool | ) |
Definition at line 112 of file OpenIdCredentials.class.php.
References isIdentifierSelect().
OpenIdCredentials::$claimedId = null [private] |
Definition at line 22 of file OpenIdCredentials.class.php.
OpenIdCredentials::$httpClient = null [private] |
Definition at line 25 of file OpenIdCredentials.class.php.
OpenIdCredentials::$isIdentifierSelect = false [private] |
Definition at line 26 of file OpenIdCredentials.class.php.
OpenIdCredentials::$realId = null [private] |
Definition at line 23 of file OpenIdCredentials.class.php.
OpenIdCredentials::$server = null [private] |
Definition at line 24 of file OpenIdCredentials.class.php.
const OpenIdCredentials::HEADER_ACCEPT = 'text/html,application/xhtml+xml,application/xml,application/xrds+xml' |
Definition at line 19 of file OpenIdCredentials.class.php.
const OpenIdCredentials::HEADER_CONT_TYPE = 'application/xrds+xml' |
Definition at line 17 of file OpenIdCredentials.class.php.
const OpenIdCredentials::HEADER_XRDS_LOCATION = 'x-xrds-location' |
Definition at line 18 of file OpenIdCredentials.class.php.
const OpenIdCredentials::IDENTIFIER_SELECT = 'http://specs.openid.net/auth/2.0/identifier_select' |
Definition at line 20 of file OpenIdCredentials.class.php.