WebSphere Web Services Client for C++, Version 1.0.1 운영 체제: Linux, Windows

메소드를 사용하여 정의한 보안 정보

SetSecure 메소드를 사용하여 보안 정보를 정의할 경우 한 행의 코드를 웹 서비스 클라이언트 응용프로그램에 추가하여 보안 서비스에 대한 GSKit 설정을 구성해야 합니다. 응용프로그램이 웹 서비스의 메소드를 호출하기 전에 GSKit 보안 정보를 초기화해야 합니다.

다음은 웹 서비스를 호출하기 전에 GSKit 보안 정보를 구성하는 샘플 클라이언트 응용프로그램의 Windows 버전을 보여 주는 예입니다. 고유의 응용프로그램 내에서 보안 설정을 구성하려면 아래의 예에서 굵게 보이는 부분과 같은 코드를 추가하십시오.

int main()
{
// Create URLs for normal and secure communication.  The localhost may require
// a port number, i.e. localhost:80
  char * pszNormalURL = "http://localhost/Test/services/TestPort";
  char * pszSecureURL = "https://localhost/Test/services/TestPort";

// Load instances of the service with normal and secure URL settings.
  ITestService * serviceNormal = new ITestService( pszNormalURL);
  ITestService * serviceSecure = new ITestService( pszSecureURL);

// Initialise the secure settings for the secure service.
  serviceSecure->SetSecure( "<GSKit_InstDir><KeyRing.kbd>",
                            "<password or stash>",
                            "<label>", "NONE", "05", "NONE", false);
// Remainder of application
: 
// End of application

    delete serviceSecure;
    delete serviceNormal;

    return 0;
} 
주: <암호 또는 숨김> 매개변수를 암호화된 암호를 포함한 숨김 파일로 대체할 수 있기 때문에 ‘원래' 암호는 코드 또는 구성 파일에 나타나지 않습니다. 숨김 파일은 키 링 데이터베이스 정의와 동일한 형식을 가지지만 확장자는 ‘.sth’(예: <GSKit_InstDir><KeyRing.sth>)이어야 합니다.

자세한 정보는 GSKit을 참조하십시오.


Concept topic

이용약관 | 피드백

시간소인 아이콘마지막 갱신 날짜: 3 Mar 2006
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.websphere.wscc.doc.nl1\concepts\wscc_csecure_setsecure.html

(C) Copyright IBM Corporation 2005. All Rights Reserved.
이 information Center는 Eclipse 기술을 기반으로 합니다. (http://www.eclipse.org)