summaryrefslogtreecommitdiff
path: root/framework/Web/Security/TCookieProtection.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Security/TCookieProtection.php')
-rw-r--r--framework/Web/Security/TCookieProtection.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/framework/Web/Security/TCookieProtection.php b/framework/Web/Security/TCookieProtection.php
new file mode 100644
index 00000000..2a757898
--- /dev/null
+++ b/framework/Web/Security/TCookieProtection.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * TCookieProtection class.
+ * Describes how information in a cookie is protected.
+ *
+ * All Use both Validation and Encryption to protect the information
+ * in the cookie.
+ * Encryption Encrypt the information in the cookie.
+ * None Do not protect information in the cookie. Information in the
+ * cookie is stored in clear text and not validated when sent back
+ * to the server.
+ * Validation Ensure that the information in the cookie has not been altered
+ * before being sent back to the server.
+ *
+ * @author Jason Ragsdale <jrags@jasrags.net>
+ * @version $Id: TCookieProtection.php 1398 2006-09-08 19:31:03Z xue $
+ * @package System.Web.Security
+ * @since 3.1
+ */
+class TCookieProtection extends TEnumerable
+{
+ const All='All';
+ const Encryption='Encryption';
+ const None='None';
+ const Validation='Validation';
+}
+?> \ No newline at end of file