User Guide

Contents xi
Chapter 17: Application Security................................................................263
ColdFusion Security Features......................................................................................................264
Remote Development Services (RDS) Security ..........................................................................264
Overview of User Security ............................................................................................................265
Using Advanced Security in Application Pages..........................................................................265
Using the CFAUTHENTICATE tag...............................................................................................266
Authentication and Authorization Functions ............................................................................267
Using the IsAuthenticated Function....................................................................................267
Using the IsAuthorized Function.........................................................................................267
Catching Security Exceptions ......................................................................................................268
Using the CFIMPERSONATE Tag ................................................................................................269
Example of User Authentication and Authorization..................................................................270
Authenticating users in Application.cfm.............................................................................271
Checking for authentication and authorization.................................................................272
Chapter 18: Building Custom CFAPI Tags ..................................................275
What Are CFX Tags? ......................................................................................................................276
Before You Begin Developing CFX Tags in C++ .........................................................................276
Sample C++ CFXs ..................................................................................................................276
Setting Up Your C++ Development Environment..............................................................276
Using the Tag Wizard to create CFXs in C++ ..............................................................................277
Compiling C++ CFXs ...............................................................................................................277
Debugging C++ CFXs....................................................................................................................277
Before You Begin Developing CFX Tags in Java .........................................................................278
Sample Java CFXs..................................................................................................................278
Setting Up Your Development Environment to Develop CFXs in Java ............................279
Writing a Java CFX ........................................................................................................................279
Processing Requests..............................................................................................................280
Java CFX Class Loading.........................................................................................................282
Automatic Class Reloading...................................................................................................283
Life cycle of Java CFXs...........................................................................................................283
Calling the CFX from a ColdFusion Template ....................................................................284
ZipBrowser Example.....................................................................................................................284
Approaches to Debugging Java CFXs ..........................................................................................286
Outputting Debug Information............................................................................................286
Using the Debugging Classes ...............................................................................................286
Debugging Classes Reference ..............................................................................................288
Java Customization and Configuration.......................................................................................289
Implementing C++ CFX Tags.......................................................................................................289
Implementing Java CFX Tags.......................................................................................................289
Registering CFXs ...........................................................................................................................289
Distribution ...........................................................................................................................291
C++ CFX Reference .......................................................................................................................293
CCFXException Class ...................................................................................................................294
Class members.......................................................................................................................294
CCFXException::GetError.....................................................................................................294
CCFXException::GetDiagnostics..........................................................................................294