OpenID
[ class tree: OpenID ] [ index: OpenID ] [ all elements ]

Class: OpenID_Association_DiffieHellman

Source Location: /OpenID-0.4.0/OpenID/Association/DiffieHellman.php

Class Overview


OpenID_Association_DiffieHellman


Author(s):

Copyright:

  • 2009 Bill Shupp

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 32]
OpenID_Association_DiffieHellman

Segregates the DiffieHellman specific parts of an association request. This is aimed at folks that don't want to use DH for associations.



[ Top ]


Class Variables

$cdh =  null

[line 54]

The instance of Crypt_DiffieHellman. May be passed into the constructor if you want to use custom keys.
  • Access: protected

Type:   Crypt_DiffieHellman


[ Top ]

$message =  null

[line 46]

The OpenID_Message being used in the request
  • Access: protected

Type:   OpenID_Message


[ Top ]

$sharedKeyComputed =  0

[line 62]

Whether or not the sharedSecretKey has been computed or not

Type:   int


[ Top ]



Method Detail

__construct (Constructor)   [line 73]

void __construct( OpenID_Message $message, [Crypt_DiffieHellman $cdh = null])

Sets the instance of OpenID_Message being used, and also an optional instance of Crypt_DiffieHellman
  • Access: public

Parameters:

OpenID_Message   $message   —  The request OpenID_Message
Crypt_DiffieHellman   $cdh   —  Optional instance of Crypt_DiffieHellman

[ Top ]

getSharedSecret   [line 119]

void getSharedSecret( array $response, array &$params)

Gets the shared secret out of a response
  • Access: public

Parameters:

array   $response   —  The response in array format
array   &$params   —  The parameters being build for OpenID_Association_Reqequest::buildAssociation()

[ Top ]

getSharedSecretKey   [line 152]

BTWOC getSharedSecretKey( string $publicKey)

Gets the shared secret key in BTWOC format. Computes the key if it has not been computed already.
  • Return: representation of the number
  • Access: public

Parameters:

string   $publicKey   —  Public key of the OP

[ Top ]

init   [line 86]

void init( )

Initialize the diffie-hellman parameters for the association request.
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:57:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.