다음을 통해 공유


KerberosClientContext.InitializeContext Method (Byte )

Retrieves a Kerberos service ticket.

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

Usage

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

Syntax

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

Parameters

  • inToken
    An array of System.Byte that is large enough to hold Kerberos service ticket.

Return Value

An array of type System.Byte that contains the Kerberos service ticket.

Remarks

To establish mutual authentication, two calls to the InitializeContext method are required. Call the InitializeContext method that does not take any parameters to get an array that is big enough to hold the Kerberos ticket. To complete the mutual authentication, pass that array to this method, which the Web service receives 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