ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
Auth_OpenID_DiffieHellmanSHA1ConsumerSession Class Reference
+ Inheritance diagram for Auth_OpenID_DiffieHellmanSHA1ConsumerSession:
+ Collaboration diagram for Auth_OpenID_DiffieHellmanSHA1ConsumerSession:

Public Member Functions

 Auth_OpenID_DiffieHellmanSHA1ConsumerSession ($dh=null)
 getRequest ()
 extractSecret ($response)

Data Fields

 $session_type = 'DH-SHA1'
 $hash_func = 'Auth_OpenID_SHA1'
 $secret_size = 20
 $allowed_assoc_types = array('HMAC-SHA1')

Detailed Description

Definition at line 453 of file Consumer.php.

Member Function Documentation

Auth_OpenID_DiffieHellmanSHA1ConsumerSession::Auth_OpenID_DiffieHellmanSHA1ConsumerSession (   $dh = null)

Definition at line 459 of file Consumer.php.

{
if ($dh === null) {
}
$this->dh = $dh;
}
Auth_OpenID_DiffieHellmanSHA1ConsumerSession::extractSecret (   $response)

Definition at line 487 of file Consumer.php.

References Auth_OpenID_getMathLib(), and Auth_OpenID_OPENID_NS.

{
if (!$response->hasKey(Auth_OpenID_OPENID_NS,
'dh_server_public')) {
return null;
}
if (!$response->hasKey(Auth_OpenID_OPENID_NS,
'enc_mac_key')) {
return null;
}
$spub = $math->base64ToLong($response->getArg(Auth_OpenID_OPENID_NS,
'dh_server_public'));
$enc_mac_key = base64_decode($response->getArg(Auth_OpenID_OPENID_NS,
'enc_mac_key'));
return $this->dh->xorSecret($spub, $enc_mac_key, $this->hash_func);
}

+ Here is the call graph for this function:

Auth_OpenID_DiffieHellmanSHA1ConsumerSession::getRequest ( )

Definition at line 468 of file Consumer.php.

References Auth_OpenID_getMathLib().

{
$cpub = $math->longToBase64($this->dh->public);
$args = array('dh_consumer_public' => $cpub);
if (!$this->dh->usingDefaultValues()) {
$args = array_merge($args, array(
'dh_modulus' =>
$math->longToBase64($this->dh->mod),
'dh_gen' =>
$math->longToBase64($this->dh->gen)));
}
return $args;
}

+ Here is the call graph for this function:

Field Documentation

Auth_OpenID_DiffieHellmanSHA1ConsumerSession::$allowed_assoc_types = array('HMAC-SHA1')

Definition at line 457 of file Consumer.php.

Auth_OpenID_DiffieHellmanSHA1ConsumerSession::$hash_func = 'Auth_OpenID_SHA1'

Definition at line 455 of file Consumer.php.

Auth_OpenID_DiffieHellmanSHA1ConsumerSession::$secret_size = 20

Definition at line 456 of file Consumer.php.

Auth_OpenID_DiffieHellmanSHA1ConsumerSession::$session_type = 'DH-SHA1'

Definition at line 454 of file Consumer.php.


The documentation for this class was generated from the following file: