Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • AuthorizedModuleSet
  • JsonPolicyDecisionPoint
  • LazyAccessControlResponse
  • PolicyRule
  • User

Interfaces

  • AccessControlResponseInterface
  • AuthorizationAttributesProviderInterface
  • PolicyDecisionPointInterface
  • PolicyEnforcementPointInterface
  • UserInterface
  • Overview
  • Namespace
  • Class
  • Deprecated

Class JsonPolicyDecisionPoint

PDP that read policies from json encoded objects on the local filesystem

Nethgui\Authorization\JsonPolicyDecisionPoint implements Nethgui\Authorization\PolicyDecisionPointInterface, Nethgui\Utility\PhpConsumerInterface, Nethgui\Log\LogConsumerInterface
Namespace: Nethgui\Authorization
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
Located at Authorization/JsonPolicyDecisionPoint.php
Methods summary
public
# __construct( $fileNameResolver, Nethgui\Utility\PhpWrapper $phpWrapper = NULL )
public Nethgui\Authorization\JsonPolicyDecisionPoint
# loadPolicy( string $policyName )

Parameters

$policyName

Returns

Nethgui\Authorization\JsonPolicyDecisionPoint
public
# authorizeSync( $request, & $message )
public Nethgui\Authorization\AccessControlResponseInterface
# authorize( string|object $subject, string|object $resource, string|object $action )

Authorize the $subject to perform $action on $resource

Authorize the $subject to perform $action on $resource

Each parameter may implement AuthorizationAttributesProviderInterface

Parameters

$subject
Subject
$resource
resource requested
$action
action to be performed

Returns

Nethgui\Authorization\AccessControlResponseInterface

Api

Implementation of

Nethgui\Authorization\PolicyDecisionPointInterface::authorize()
public Nethgui\Utility\PhpConsumerInterface
# setPhpWrapper( Nethgui\Utility\PhpWrapper $object )

Parameters

$object

Returns

Nethgui\Utility\PhpConsumerInterface

Implementation of

Nethgui\Utility\PhpConsumerInterface::setPhpWrapper()
public Nethgui\Log\LogInterface
# getLog( )

The log attached to the interface implementor

The log attached to the interface implementor

Returns

Nethgui\Log\LogInterface

Api

Implementation of

Nethgui\Log\LogConsumerInterface::getLog()
public Nethgui\Log\LogConsumerInterface
# setLog( Nethgui\Log\LogInterface $log )

Change the log attached to the interface implementor

Change the log attached to the interface implementor

Parameters

$log

Returns

Nethgui\Log\LogConsumerInterface

Api

Implementation of

Nethgui\Log\LogConsumerInterface::setLog()
Nethgui Framework API documentation generated by ApiGen