GetAuthenticationAlgorithm

Description

Returns the AuthenticationAlgorithm of the schema repository.

Returns a valid AuthenticationAlgorithm unless an exception is thrown (for example, due to a communication failure with the schema repository). Calling this method does not require special privileges.

Remarque : This method became available in version 2003.06.14.

Syntaxe

VBScript

adminSession.GetAuthenticationAlgorithm() 

Perl

$adminSession->GetAuthenticationAlgorithm(); 
Identificateur
Description
adminSession
L'objet AdminSession représentant la session d'accès du référentiel de schéma en cours.
Valeur de retour
Returns a Long containing the AuthenticationAlgorithm of the schema repository.

Exemples

VBScript

' set the admin session ...
  set adminSession = CreateObject("ClearQuest.AdminSession")
  adminSession.Logon "admin", "admin", ""
' check preferred authentication algorithm:  
  Dim cquser2 ' a user object
  Dim authAlg ' the authentication algorithm value
  authAlg = adminSession.GetAuthenticationAlgorithm()
  StdOut "Authentication algorithm: " & CStr(authAlg) & vbCrLf

Perl

use CQPerlExt;
# Créez une session admin Rational ClearQuest
$adminSession= CQAdminSession::Build();
#Connectez-vous en tant qu'admin
$adminSession->Logon( "admin", "admin", "" );
$adminSession->GetAuthenticationAlgorithm();
# ...
CQAdminSession::Unbuild($adminSession);

Feedback