GetAuthenticationAlgorithm

설명

스키마 저장소의 AuthenticationAlgorithm을 리턴합니다.

예외가 발생하지 않는 한(예를 들어, 스키마 저장소에서의 통신 장애로 인해) 올바른 AuthenticationAlgorithm이 리턴됩니다. 이 메소드를 호출할 때에는 특수 권한이 필요하지는 않습니다.

주: 이 메소드는 버전 2003.06.14부터 사용 가능해졌습니다.

구문

VBScript

adminSession.GetAuthenticationAlgorithm() 

Perl

$adminSession->GetAuthenticationAlgorithm(); 
ID
설명
adminSession
현재 스키마 저장소 액세스 세션을 나타내는 AdminSession 오브젝트.
Return value
스키마 저장소의 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);

피드백