PHP 클래스 AppserverIo\Appserver\ServletEngine\Security\Mapping

상속: implements AppserverIo\Appserver\ServletEngine\Security\MappingInterface
파일 보기 프로젝트 열기: appserver-io/appserver

보호된 프로퍼티들

프로퍼티 타입 설명
$authenticatorSerial string The authenticator serial.
$httpMethodOmissions array The array with the HTTP methods that has to be omissed from authentication.
$httpMethods array The array with the HTTP methods that has to be authenticated.
$roleNames array The array with the role names.
$urlPattern string The URL pattern.

공개 메소드들

메소드 설명
__construct ( string $urlPattern, string $authenticatorSerial, array $roleNames = [], array $httpMethods = [], array $httpMethodOmissions = [] ) Initialize the mapping with the passed values.
getAuthenticatorSerial ( ) : string Return's the authenticator serial.
getHttpMethodOmissions ( ) : array Return's the HTTP methods that has to b omissed from authentication
getHttpMethods ( ) : array Return's the HTTP methods that has to be authenticated.
getRoleNames ( ) : array Return's the role names.
getUrlPattern ( ) : string Return's the URL pattern.
match ( AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest ) : boolean Return's TRUE if the passed request matches the mappings URL patter.

메소드 상세

__construct() 공개 메소드

Initialize the mapping with the passed values.
public __construct ( string $urlPattern, string $authenticatorSerial, array $roleNames = [], array $httpMethods = [], array $httpMethodOmissions = [] )
$urlPattern string The URL pattern
$authenticatorSerial string The authenticator serial
$roleNames array The array with the role names
$httpMethods array The array with the HTTP methods that has to be authenticated
$httpMethodOmissions array The array with the HTTP methods that has to be omissed from authentication

getAuthenticatorSerial() 공개 메소드

Return's the authenticator serial.
public getAuthenticatorSerial ( ) : string
리턴 string The authenticator serial

getHttpMethodOmissions() 공개 메소드

Return's the HTTP methods that has to b omissed from authentication
public getHttpMethodOmissions ( ) : array
리턴 array The HTTP methods

getHttpMethods() 공개 메소드

Return's the HTTP methods that has to be authenticated.
public getHttpMethods ( ) : array
리턴 array The HTTP methods

getRoleNames() 공개 메소드

Return's the role names.
public getRoleNames ( ) : array
리턴 array The role names

getUrlPattern() 공개 메소드

Return's the URL pattern.
public getUrlPattern ( ) : string
리턴 string The URL pattern

match() 공개 메소드

Return's TRUE if the passed request matches the mappings URL patter.
public match ( AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest ) : boolean
$servletRequest AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface The request to match
리턴 boolean TRUE if the request matches, else FALSE

프로퍼티 상세

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

The authenticator serial.
protected string $authenticatorSerial
리턴 string

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

The array with the HTTP methods that has to be omissed from authentication.
protected array $httpMethodOmissions
리턴 array

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

The array with the HTTP methods that has to be authenticated.
protected array $httpMethods
리턴 array

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

The array with the role names.
protected array $roleNames
리턴 array

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

The URL pattern.
protected string $urlPattern
리턴 string