Class Ethna_Plugin_Csrf

Description

CSRF対策基底クラス

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

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


	
			
Direct descendents
Class Description
 class Ethna_Plugin_Csrf_Session CSRF対策
Method Summary
 Ethna_Plugin_Csrf Ethna_Plugin_Csrf (object Ethna_Controller &$controller)
 string get ()
 string getName ()
 mixed isValid ()
 string remove ()
 string set ()
 string _generateKey ()
 mixed _get_token ()
Methods
Constructor Ethna_Plugin_Csrf (line 51)

Ethna_Plugin_Csrfのコンストラクタ

  • access: public
Ethna_Plugin_Csrf Ethna_Plugin_Csrf (object Ethna_Controller &$controller)
get (line 78)

トークンIDを取得する

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

Redefined in descendants as:
getName (line 100)

トークン名を取得する

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

トークンIDを検証する

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

トークンIDを削除する

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

Redefined in descendants as:
set (line 67)

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

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

Redefined in descendants as:
_generateKey (line 134)

キーを生成する

  • return: keyname
  • access: public
string _generateKey ()
_get_token (line 145)

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

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

Documentation generated on Fri, 11 Nov 2011 04:00:09 +0900 by phpDocumentor 1.4.3