Path

ez components / documentation / api reference / 2007.2beta1 / authentication


eZ Components 2007.2beta1

Authentication: ezcAuthenticationPasswordCredentials

[ Tutorial ] [ Rfcs ] [ Security ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcAuthenticationPasswordCredentials

Structure containing an id and password, used as authentication credentials. [source]

Parents

ezcBaseStruct
   |
   --ezcAuthenticationCredentials
      |
      --ezcAuthenticationPasswordCredentials

Member Variables

public string $id
Username or userID or url.
public string $password
Password for the id.

Method Summary

public ezcAuthenticationPasswordCredentials __construct( $id, $password )
Constructs a new ezcAuthenticationPasswordCredentials object.
public static ezcAuthenticationPasswordCredentials __set_state( $array )
Returns a new instance of this class with the data specified by $array.
public string __toString( )
Returns string representation of the credentials.

Inherited Methods

From ezcAuthenticationCredentials :
public abstract string ezcAuthenticationCredentials::__toString()
Returns string representation of the credentials.

Methods

__construct

ezcAuthenticationPasswordCredentials __construct( string $id, string $password )
Constructs a new ezcAuthenticationPasswordCredentials object.

Parameters

Name Type Description
$id string  
$password string  

__set_state

ezcAuthenticationPasswordCredentials __set_state( $array )
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.

Parameters

Name Type Description
$array array(string=>mixed) Associative array of data members for this class

__toString

string __toString( )
Returns string representation of the credentials.
Use it to save the credentials in the session.

Redefinition of

Method Description
ezcAuthenticationCredentials::__toString() Returns string representation of the credentials.

Last updated: Wed, 28 Nov 2007