GetAuthenticationAlgorithm

説明

スキーマ リポジトリの AuthenticationAlgorithm を戻します。

例外がスローされない場合 (例えば、スキーマ リポジトリとの通信障害のため)、有効な AuthenticationAlgorithm を戻します。このメソッドを呼び出すには、特別の権限は必要ありません。

注: このメソッドは、バージョン 2003.06.14 で使用可能になります。

構文

VBScript

adminSession.GetAuthenticationAlgorithm() 

Perl

$adminSession->GetAuthenticationAlgorithm(); 
識別子
説明
adminSession
AdminSession オブジェクトは、現在のスキーマ リポジトリのアクセス セッションを表します。
戻り値
スキーマ リポジトリの AuthenticationAlgorithm を含む Long を戻します。

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;
#Create a Rational ClearQuest admin session
$adminSession = CQAdminSession::Build();
#Logon as admin
$adminSession->Logon( "admin", "admin", "" );
$adminSession->GetAuthenticationAlgorithm();
# ...
CQAdminSession::Unbuild($adminSession);

フィードバック