PHP 클래스 Horde_Auth_Ipbasic, horde

It is not meant for user-based systems, but for times when you want a block of IPs to be able to access a site, and that access is simply on/off - no preferences, etc.
저자: Chuck Hagenbuch ([email protected])
상속: extends Horde_Auth_Base
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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: Find out if the client matches an allowed IP block.

보호된 메소드들

메소드 설명
_addressWithinCIDR ( string $address, string $cidr ) : boolean Determine if an IP address is within a CIDR block.
_authenticate ( string $userId, array $credentials ) Not implemented

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params = [] )
$params array Optional Parameters:
'blocks' - (array) CIDR masks which are allowed access.

_addressWithinCIDR() 보호된 메소드

Determine if an IP address is within a CIDR block.
protected _addressWithinCIDR ( string $address, string $cidr ) : boolean
$address string The IP address to check.
$cidr string The block (e.g. 192.168.0.0/16) to test against.
리턴 boolean Whether or not the address matches the mask.

_authenticate() 보호된 메소드

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

transparent() 공개 메소드

Automatic authentication: Find out if the client matches an allowed IP block.
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