다음을 통해 공유


KerberosClientContext.InitializeContext Method ()

Retrieves a Kerberos service ticket.

Namespace: Microsoft.Web.Services3.Security.Tokens.Kerberos
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim returnValue() As Byte
Dim kerberosClientContext1 As KerberosClientContext
returnValue = kerberosClientContext1.InitializeContext()

Syntax

'Declaration
Overloads Public Function InitializeContext() As Byte()
public byte[] InitializeContext();
public:
array<unsigned char>^ InitializeContext();
public ubyte[] InitializeContext();
public function InitializeContext() : Byte[];

Return Value

An array of System.Byte that represents the Kerberos service ticket.

Remarks

To establish mutual authentication, two calls to the InitializeContext method are required. Call this constructor the first time to get an array that is big enough to hold the Kerberos ticket. To complete the mutual authentication, pass that array to the InitializeContext(Byte[]) method, which is received by the Web service in the AcceptContext method.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

KerberosClientContext Class
KerberosClientContext Members
Microsoft.Web.Services3.Security.Tokens.Kerberos Namespace