PHP Class AppserverIo\Appserver\ServletEngine\Security\Mapping

Inheritance: implements AppserverIo\Appserver\ServletEngine\Security\MappingInterface
Afficher le fichier Open project: appserver-io/appserver

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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() public méthode

Return's the authenticator serial.
public getAuthenticatorSerial ( ) : string
Résultat string The authenticator serial

getHttpMethodOmissions() public méthode

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

getHttpMethods() public méthode

Return's the HTTP methods that has to be authenticated.
public getHttpMethods ( ) : array
Résultat array The HTTP methods

getRoleNames() public méthode

Return's the role names.
public getRoleNames ( ) : array
Résultat array The role names

getUrlPattern() public méthode

Return's the URL pattern.
public getUrlPattern ( ) : string
Résultat string The URL pattern

match() public méthode

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
Résultat boolean TRUE if the request matches, else FALSE

Property Details

$authenticatorSerial protected_oe property

The authenticator serial.
protected string $authenticatorSerial
Résultat string

$httpMethodOmissions protected_oe property

The array with the HTTP methods that has to be omissed from authentication.
protected array $httpMethodOmissions
Résultat array

$httpMethods protected_oe property

The array with the HTTP methods that has to be authenticated.
protected array $httpMethods
Résultat array

$roleNames protected_oe property

The array with the role names.
protected array $roleNames
Résultat array

$urlPattern protected_oe property

The URL pattern.
protected string $urlPattern
Résultat string