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

Class: Auth_SASL_CramMD5

Source Location: /Auth_SASL-1.0.6/Auth/SASL/CramMD5.php

Class Overview

Auth_SASL_Common
   |
   --Auth_SASL_CramMD5

Common functionality to SASL mechanisms


Author(s):

Version:

  • 1.0

Methods


Inherited Variables

Inherited Methods

Class: Auth_SASL_Common

Auth_SASL_Common::_HMAC_SHA1()
Function which implements HMAC-SHA-1 digest

Class Details

[line 48]
Common functionality to SASL mechanisms


[ Top ]


Method Detail

getResponse   [line 63]

string getResponse( string $user, string $pass, string $challenge)

Implements the CRAM-MD5 SASL mechanism This DOES NOT base64 encode the return value, you will need to do that yourself.
  • Return: The string to pass back to the server, of the form "<user> <digest>". This is NOT base64_encoded.

Parameters:

string   $user   —  Username
string   $pass   —  Password
string   $challenge   —  The challenge supplied by the server. this should be already base64_decoded.

[ Top ]


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