PHP 클래스 Horde_Auth_X509, horde

부터: 2.0.7
저자: Michael J Rubinsky ([email protected])
상속: extends Horde_Auth_Base
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_capabilities array An array of capabilities, so that the driver can report which operations it supports and which it doesn't.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
transparent ( ) : boolean Automatic authentication: checks if the username is set in the configured header.

보호된 메소드들

메소드 설명
_authenticate ( string $userId, array $credentials ) Not implemented.
_validate ( $certificate ) : boolean Perform additional validation of certificate fields.

메소드 상세

__construct() 공개 메소드

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() 보호된 메소드

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

_validate() 보호된 메소드

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

transparent() 공개 메소드

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

프로퍼티 상세

$_capabilities 보호되어 있는 프로퍼티

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