PHP 클래스 Neos\Flow\Command\SecurityCommandController

상속: extends Neos\Flow\Cli\CommandController
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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

프로퍼티 상세

$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