ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
Association.php File Reference

Go to the source code of this file.

Data Structures

class  Auth_OpenID_Association
class  Auth_OpenID_SessionNegotiator

Namespaces

namespace  OpenID
 This module contains code for dealing with associations between consumers and servers.

Functions

 Auth_OpenID_getSecretSize ($assoc_type)
 Auth_OpenID_getAllAssociationTypes ()
 Auth_OpenID_getSupportedAssociationTypes ()
 Auth_OpenID_getSessionTypes ($assoc_type)
 Auth_OpenID_checkSessionType ($assoc_type, $session_type)
 Auth_OpenID_getDefaultAssociationOrder ()
 Auth_OpenID_getOnlyEncryptedOrder ()
 Auth_OpenID_getDefaultNegotiator ()
 Auth_OpenID_getEncryptedNegotiator ()

Function Documentation

Auth_OpenID_checkSessionType (   $assoc_type,
  $session_type 
)

Definition at line 421 of file Association.php.

References Auth_OpenID_getSessionTypes().

Referenced by Auth_OpenID_SessionNegotiator\addAllowedType(), and Auth_OpenID_SessionNegotiator\setAllowedTypes().

{
if (!in_array($session_type,
Auth_OpenID_getSessionTypes($assoc_type))) {
return false;
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Auth_OpenID_getAllAssociationTypes ( )

Definition at line 392 of file Association.php.

{
return array('HMAC-SHA1', 'HMAC-SHA256');
}
Auth_OpenID_getDefaultAssociationOrder ( )

Definition at line 431 of file Association.php.

References Auth_OpenID_noMathSupport().

Referenced by Auth_OpenID_getDefaultNegotiator(), and Auth_OpenID_getOnlyEncryptedOrder().

{
$order = array();
$order[] = array('HMAC-SHA1', 'DH-SHA1');
if (Auth_OpenID_HMACSHA256_SUPPORTED) {
$order[] = array('HMAC-SHA256', 'DH-SHA256');
}
}
$order[] = array('HMAC-SHA1', 'no-encryption');
if (Auth_OpenID_HMACSHA256_SUPPORTED) {
$order[] = array('HMAC-SHA256', 'no-encryption');
}
return $order;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Auth_OpenID_getDefaultNegotiator ( )

Definition at line 472 of file Association.php.

References Auth_OpenID_getDefaultAssociationOrder().

Referenced by Auth_OpenID_GenericConsumer\Auth_OpenID_GenericConsumer(), and Auth_OpenID_Server\Auth_OpenID_Server().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Auth_OpenID_getEncryptedNegotiator ( )

Definition at line 478 of file Association.php.

References Auth_OpenID_getOnlyEncryptedOrder().

+ Here is the call graph for this function:

Auth_OpenID_getOnlyEncryptedOrder ( )

Definition at line 452 of file Association.php.

References $result, and Auth_OpenID_getDefaultAssociationOrder().

Referenced by Auth_OpenID_getEncryptedNegotiator().

{
$result = array();
list($assoc, $session) = $pair;
if ($session != 'no-encryption') {
if (Auth_OpenID_HMACSHA256_SUPPORTED &&
($assoc == 'HMAC-SHA256')) {
$result[] = $pair;
} else if ($assoc != 'HMAC-SHA256') {
$result[] = $pair;
}
}
}
return $result;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Auth_OpenID_getSecretSize (   $assoc_type)

Definition at line 381 of file Association.php.

Referenced by Auth_OpenID_Signatory\createAssociation().

{
if ($assoc_type == 'HMAC-SHA1') {
return 20;
} else if ($assoc_type == 'HMAC-SHA256') {
return 32;
} else {
return null;
}
}

+ Here is the caller graph for this function:

Auth_OpenID_getSessionTypes (   $assoc_type)

Definition at line 408 of file Association.php.

References Auth_OpenID\arrayGet().

Referenced by Auth_OpenID_SessionNegotiator\addAllowedType(), Auth_OpenID_checkSessionType(), and Auth_OpenID_SessionNegotiator\isAllowed().

{
$assoc_to_session = array(
'HMAC-SHA1' => array('DH-SHA1', 'no-encryption'));
if (Auth_OpenID_HMACSHA256_SUPPORTED) {
$assoc_to_session['HMAC-SHA256'] =
array('DH-SHA256', 'no-encryption');
}
return Auth_OpenID::arrayGet($assoc_to_session, $assoc_type, array());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Auth_OpenID_getSupportedAssociationTypes ( )

Definition at line 397 of file Association.php.

Referenced by Auth_OpenID_Association\Auth_OpenID_Association().

{
$a = array('HMAC-SHA1');
if (Auth_OpenID_HMACSHA256_SUPPORTED) {
$a[] = 'HMAC-SHA256';
}
return $a;
}

+ Here is the caller graph for this function: