silverorange Code


Swat.SwatCrossSiteRequestForgeryException
/Swat/exceptions/SwatCrossSiteRequestForgeryException.php at line 21

Class SwatCrossSiteRequestForgeryException

Exception
└─SwatException
└─SwatCrossSiteRequestForgeryException

public class SwatCrossSiteRequestForgeryException
extends SwatException

Thrown by SwatForm when a possible cross-site request forgery is detected

By design, it is not possible to get the correct authentication token from this exception. Since it is not possible to get the correct authentication token, the incorrect token is not useful and is also not availble in this exception.

Copyright:
2007 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
protected SwatForm

$form

The form that did not authenticate.

Fields inherited from Swat.SwatException
backtrace, class, displayer, logger
Constructor Summary

SwatCrossSiteRequestForgeryException(string message, integer code, SwatForm form)

Creates a new cross-site request forgery exception.

Method Summary
SwatForm

getForm()

Gets the form that did not authenticate.

Methods inherited from Swat.SwatException
display, displayStyleSheet, formatSensitiveParam, formatValue, getArguments, getClass, getSummary, handle, isSensitiveParameter, log, process, setDisplayer, setLogger, setupHandler, toString, toXHTML, wasHandled

Field Detail

/Swat/exceptions/SwatCrossSiteRequestForgeryException.php at line 30

form

protected SwatForm $form = null

The form that did not authenticate


Constructor Detail

/Swat/exceptions/SwatCrossSiteRequestForgeryException.php at line 42

SwatCrossSiteRequestForgeryException

public SwatCrossSiteRequestForgeryException(string message, integer code, SwatForm form)

Creates a new cross-site request forgery exception

Parameters:
message - the message of the exception.
code - the code of the exception.
form - the form that did not authenticate.

Method Detail

/Swat/exceptions/SwatCrossSiteRequestForgeryException.php at line 56

getForm

public SwatForm getForm()

Gets the form that did not authenticate

Returns:
the form that did not authenticate.

silverorange Code