PHP Класс Neos\Flow\Command\SecurityCommandController

Наследование: extends Neos\Flow\Cli\CommandController
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$methodPermissionCache Neos\Cache\Frontend\VariableFrontend
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$policyService Neos\Flow\Security\Policy\PolicyService
$reflectionService Neos\Flow\Reflection\ReflectionService
$rsaWalletService Neos\Flow\Security\Cryptography\RsaWalletServicePhp

Открытые методы

Метод Описание
generateKeyPairCommand ( boolean $usedForPasswords = false ) : void Generate a public/private key pair and add it to the RSAWalletService
importPrivateKeyCommand ( boolean $usedForPasswords = false ) : void Import a private key
importPublicKeyCommand ( ) : void Import a public key
injectCacheManager ( CacheManager $cacheManager ) : void Injects the Cache Manager because we cannot inject an automatically factored cache during compile time.
showEffectivePolicyCommand ( string $privilegeType, string $roles = '' ) Shows a list of all defined privilege targets and the effective permissions
showMethodsForPrivilegeTargetCommand ( string $privilegeTarget ) : void Shows the methods represented by the given security privilege target
showUnprotectedActionsCommand ( ) : void Lists all public controller actions not covered by the active security policy

Описание методов

generateKeyPairCommand() публичный Метод

Generate a public/private key pair and add it to the RSAWalletService
public generateKeyPairCommand ( boolean $usedForPasswords = false ) : void
$usedForPasswords boolean If the private key should be used for passwords
Результат void

importPrivateKeyCommand() публичный Метод

Read a PEM formatted private key from stdin and import it into the RSAWalletService. The public key will be automatically extracted and stored together with the private key as a key pair. You can generate the same fingerprint returned from this using these commands: ssh-keygen -yf my-key.pem > my-key.pub ssh-keygen -lf my-key.pub To create a private key to import using this method, you can use: ssh-keygen -t rsa -f my-key ./flow security:importprivatekey < my-key Again, the fingerprint can also be generated using: ssh-keygen -lf my-key.pub
public importPrivateKeyCommand ( boolean $usedForPasswords = false ) : void
$usedForPasswords boolean If the private key should be used for passwords
Результат void

importPublicKeyCommand() публичный Метод

Read a PEM formatted public key from stdin and import it into the RSAWalletService.
public importPublicKeyCommand ( ) : void
Результат void

injectCacheManager() публичный Метод

Injects the Cache Manager because we cannot inject an automatically factored cache during compile time.
public injectCacheManager ( CacheManager $cacheManager ) : void
$cacheManager Neos\Flow\Cache\CacheManager
Результат void

showEffectivePolicyCommand() публичный Метод

Shows a list of all defined privilege targets and the effective permissions
public showEffectivePolicyCommand ( string $privilegeType, string $roles = '' )
$privilegeType string The privilege type ("entity", "method" or the FQN of a class implementing PrivilegeInterface)
$roles string A comma separated list of role identifiers. Shows policy for an unauthenticated user when left empty.

showMethodsForPrivilegeTargetCommand() публичный Метод

If the privilege target has parameters those can be specified separated by a colon for example "parameter1:value1" "parameter2:value2". But be aware that this only works for parameters that have been specified in the policy
public showMethodsForPrivilegeTargetCommand ( string $privilegeTarget ) : void
$privilegeTarget string The name of the privilegeTarget as stated in the policy
Результат void

showUnprotectedActionsCommand() публичный Метод

Lists all public controller actions not covered by the active security policy
public showUnprotectedActionsCommand ( ) : void
Результат void

Описание свойств

$methodPermissionCache защищенное свойство

protected VariableFrontend,Neos\Cache\Frontend $methodPermissionCache
Результат Neos\Cache\Frontend\VariableFrontend

$objectManager защищенное свойство

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Результат Neos\Flow\ObjectManagement\ObjectManagerInterface

$policyService защищенное свойство

protected PolicyService,Neos\Flow\Security\Policy $policyService
Результат Neos\Flow\Security\Policy\PolicyService

$reflectionService защищенное свойство

protected ReflectionService,Neos\Flow\Reflection $reflectionService
Результат Neos\Flow\Reflection\ReflectionService

$rsaWalletService защищенное свойство

protected RsaWalletServicePhp,Neos\Flow\Security\Cryptography $rsaWalletService
Результат Neos\Flow\Security\Cryptography\RsaWalletServicePhp