Partager via


KerberosClientContext Constructor (String, Boolean, ImpersonationLevel)

Initializes a new instance of the KerberosClientContext class using the specified target principal name.

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

Usage

'Usage
Dim targetPrincipalName As String
Dim requireMutualAuthentication As Boolean
Dim level As ImpersonationLevel
Dim kerberosClientContext1 As New KerberosClientContext(targetPrincipalName, requireMutualAuthentication, level)

Syntax

'Declaration
Public Sub New( _
    ByVal targetPrincipalName As String, _
    ByVal requireMutualAuthentication As Boolean, _
    ByVal level As ImpersonationLevel _
)
public KerberosClientContext(
    string targetPrincipalName, 
    bool requireMutualAuthentication, 
    ImpersonationLevel level
);
public:
KerberosClientContext(
    String^ targetPrincipalName, 
    bool requireMutualAuthentication, 
    ImpersonationLevel level
);
public KerberosClientContext(
    System.String targetPrincipalName, 
    boolean requireMutualAuthentication, 
    ImpersonationLevel level
);
public function KerberosClientContext(
     targetPrincipalName : String, 
     requireMutualAuthentication : Boolean, 
     level : ImpersonationLevel
);

Parameters

  • targetPrincipalName
    The target principal name.
  • requireMutualAuthentication
    true when this KerberosClientContext instance requires mutual authentication; otherwise, false.

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