Topic Path: Symbol Reference > Functions > FindAuthClass Function
FindAuthClass Function

Retrieves a class instance to be used for the authentication method.

function FindAuthClass(
    AuthName: String
): TIdAuthenticationClass;
Authentication method to be used by the framework. 

TIdAuthenticationClass - Authentication class instance for the requested method.

FindAuthClass is a TIdAuthenticationClass function that retrieves an authentication class reference that can be used to create new instances for the authentication scheme identified in AuthName. 

Authentication classes are retrieved form the list of registered authentication classes created by RegisterAuthenticationMethod. Use RegisterAuthenticationMethod to ensure that a class reference is available for the specific authentication scheme. 

FindAuthClass may return Nil when a class reference cannot be located with the name specified in AuthName. 

FindAuthClass is used in TIdHTTP to locate the authentication class to be used in support of the WWW-Authenticate header in the HTTP Response.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.