Свойство | Тип | Описание | |
---|---|---|---|
$csrfProtectionToken | string | ||
$initialized | boolean | TRUE if the context is initialized in the current request, FALSE or NULL otherwise. | |
$interceptedRequest | Neos\Flow\Mvc\RequestInterface | ||
$roles | |||
$tokens | array | Array of configured tokens (might have request patterns) |
Метод | Описание | |
---|---|---|
clearContext ( ) : void | Clears the security context. | |
getAuthenticationStrategy ( ) : integer | Get the token authentication strategy | |
getAuthenticationTokens ( ) : Neos\Flow\Security\Authentication\TokenInterface[] | Returns all Authentication\Tokens of the security context which are active for the current request. If a token has a request pattern that cannot match against the current request it is determined as not active. | |
getAuthenticationTokensOfType ( string $className ) : Neos\Flow\Security\Authentication\TokenInterface[] | Returns all Authentication\Tokens of the security context which are active for the current request and of the given type. If a token has a request pattern that cannot match against the current request it is determined as not active. | |
getCsrfProtectionToken ( ) : string | Returns the current CSRF protection token. A new one is created when needed, depending on the configured CSRF protection strategy. | |
getInterceptedRequest ( ) : |
Returns the request, that has been stored for later resuming after it has been intercepted by a security exception, NULL if there is none. | |
getRoles ( ) : |
Returns the roles of all authenticated accounts, including inherited roles. | |
hasCsrfProtectionTokens ( ) : boolean | Returns TRUE if the context has CSRF protection tokens. | |
hasRole ( string $roleIdentifier ) : boolean | Returns TRUE, if at least one of the currently authenticated accounts holds a role with the given identifier, also recursively. | |
isCsrfProtectionTokenValid ( string $csrfToken ) : boolean | Returns TRUE if the given string is a valid CSRF protection token. The token will be removed if the configured csrf strategy is 'onePerUri'. | |
isInitialized ( ) : boolean | ||
setAuthenticationTokens ( array $tokens ) : array | Sets the Authentication\Tokens of the security context which should be active. | |
setCsrfProtectionToken ( string $csrfProtectionToken ) : void | ||
setInitialized ( boolean $initialized ) : void | ||
setInterceptedRequest ( |
Sets an action request, to be stored for later resuming after it has been intercepted by a security exception. | |
setRoles ( |
Set an array of role objects. |
public clearContext ( ) : void | ||
Результат | void |
public getAuthenticationStrategy ( ) : integer | ||
Результат | integer | One of the AUTHENTICATE_* constants |
public getAuthenticationTokens ( ) : Neos\Flow\Security\Authentication\TokenInterface[] | ||
Результат | Neos\Flow\Security\Authentication\TokenInterface[] | Array of set tokens |
public getAuthenticationTokensOfType ( string $className ) : Neos\Flow\Security\Authentication\TokenInterface[] | ||
$className | string | The class name |
Результат | Neos\Flow\Security\Authentication\TokenInterface[] | Array of set tokens of the specified type |
public getCsrfProtectionToken ( ) : string | ||
Результат | string |
public getInterceptedRequest ( ) : |
||
Результат |
public getRoles ( ) : |
||
Результат |
public hasCsrfProtectionTokens ( ) : boolean | ||
Результат | boolean | TRUE, if the token is valid. FALSE otherwise. |
public isCsrfProtectionTokenValid ( string $csrfToken ) : boolean | ||
$csrfToken | string | The token string to be validated |
Результат | boolean | TRUE, if the token is valid. FALSE otherwise. |
public isInitialized ( ) : boolean | ||
Результат | boolean | TRUE if the Context is initialized, FALSE otherwise. |
public setAuthenticationTokens ( array $tokens ) : array | ||
$tokens | array | Array of set tokens |
Результат | array |
public setCsrfProtectionToken ( string $csrfProtectionToken ) : void | ||
$csrfProtectionToken | string | |
Результат | void |
public setInitialized ( boolean $initialized ) : void | ||
$initialized | boolean | |
Результат | void |
public setInterceptedRequest ( |
||
$interceptedRequest | ||
Результат | void |
protected bool $initialized | ||
Результат | boolean |
protected RequestInterface,Neos\Flow\Mvc $interceptedRequest | ||
Результат | Neos\Flow\Mvc\RequestInterface |
protected Role[],Neos\Flow\Security\Policy $roles | ||
Результат |
protected array $tokens | ||
Результат | array |