PHP Class Horde_Auth_X509, horde

Since: 2.0.7
Author: Michael J Rubinsky ([email protected])
Inheritance: extends Horde_Auth_Base
ファイルを表示 Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_capabilities array An array of capabilities, so that the driver can report which operations it supports and which it doesn't.

Public Methods

Method Description
__construct ( array $params = [] ) Constructor.
transparent ( ) : boolean Automatic authentication: checks if the username is set in the configured header.

Protected Methods

Method Description
_authenticate ( string $userId, array $credentials ) Not implemented.
_validate ( $certificate ) : boolean Perform additional validation of certificate fields.

Method Details

__construct() public method

Constructor.
public __construct ( array $params = [] )
$params array Parameters: - password: (string) If available, the password to use for the session. DEFAULT: no password used. - username_field: (string) Name of the $_SERVER field that the username can be found in. DEFAULT: 'SSL_CLIENT_S_DN_EMAILADDRESS'. - certificate_field: (string) Name of the $_SERVER field that contains the full certificate. DEFAULT: 'SSL_CLIENT_CERT' - ignore_purpose: (boolean) If true, will ignore any usage restrictions on the presented client certificate. I.e., if openssl_x509_checkpurpose returns false, authentication may still proceed. DEFAULT: false - ONLY ENABLE THIS IF YOU KNOW WHY YOU ARE DOING SO. - filter: (array) An array where the keys are field names and the values are the values those certificate fields MUST match to be considered valid. Keys in the format of fieldone:fieldtwo will be taken as parent:child. DEFAULT: no additionachecks applied.

_authenticate() protected method

Not implemented.
protected _authenticate ( string $userId, array $credentials )
$userId string The userID to check.
$credentials array An array of login credentials.

_validate() protected method

Perform additional validation of certificate fields.
protected _validate ( $certificate ) : boolean
return boolean

transparent() public method

Automatic authentication: checks if the username is set in the configured header.
public transparent ( ) : boolean
return boolean Whether or not the client is allowed.

Property Details

$_capabilities protected_oe property

An array of capabilities, so that the driver can report which operations it supports and which it doesn't.
protected array $_capabilities
return array