Class Ethna_Plugin_Csrf

Description

CSRF対策基底クラス

CSRF対策をトークンを用いて対策するためのコード

Located in /class/Plugin/Csrf.php (line 22)

Ethna_Plugin_Abstract
   |
   --Ethna_Plugin_Csrf
Direct descendents
Class Description
 class Ethna_Plugin_Csrf_Session CSRF対策
Variable Summary
 string $token_name
Method Summary
 string get ()
 string getTokenName ()
 mixed isValid ()
 string remove ()
 string set ()
 string _generateKey ()
 mixed _get_token ()
Variables
Methods
get (line 57)

トークンIDを取得する

  • return: トークンIDを返す。
  • access: public
string get ()

Redefined in descendants as:
getTokenName (line 79)

トークン名を取得する

  • return: トークン名を返す。
  • access: public
string getTokenName ()
isValid (line 90)

トークンIDを検証する

  • return: 正常の場合はtrue, 不正の場合はfalse
  • access: public
mixed isValid ()
remove (line 68)

トークンIDを削除する

  • return: トークンIDを返す。
  • access: public
string remove ()

Redefined in descendants as:
set (line 46)

トークンをViewとローカルファイルにセットする

  • return: トークンのKey
  • access: public
string set ()

Redefined in descendants as:
_generateKey (line 113)

キーを生成する

  • return: keyname
  • access: protected
string _generateKey ()
_get_token (line 124)

リクエストからトークンIDとリクエストIDを抜き出す

  • return: 正常の場合はトークン名, 不正の場合はfalse
  • access: protected
mixed _get_token ()

Inherited Methods

Inherited From Ethna_Plugin_Abstract

 Ethna_Plugin_Abstract::__construct()
 Ethna_Plugin_Abstract::getConfig()
 Ethna_Plugin_Abstract::getName()
 Ethna_Plugin_Abstract::getType()
 Ethna_Plugin_Abstract::_detectName()
 Ethna_Plugin_Abstract::_detectType()
 Ethna_Plugin_Abstract::_load()
 Ethna_Plugin_Abstract::_loadConfig()

Documentation generated on Fri, 11 Nov 2011 03:57:55 +0900 by phpDocumentor 1.4.3