Partager via


KerberosTokenProvider Constructor (String, ImpersonationLevel)

Initializes a new instance of the KerberosTokenProvider class using the specified target principal, and how a recipient of the KerberosToken security token can use the identity that is associated with the security token.

Namespace: Microsoft.Web.Services3.Design
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim targetPrincipal As String
Dim impersonationLevel As ImpersonationLevel
Dim kerberosTokenProvider1 As New KerberosTokenProvider(targetPrincipal, impersonationLevel)

Syntax

'Declaration
Public Sub New( _
    ByVal targetPrincipal As String, _
    ByVal impersonationLevel As ImpersonationLevel _
)
public KerberosTokenProvider(
    string targetPrincipal, 
    ImpersonationLevel impersonationLevel
);
public:
KerberosTokenProvider(
    String^ targetPrincipal, 
    ImpersonationLevel impersonationLevel
);
public KerberosTokenProvider(
    System.String targetPrincipal, 
    ImpersonationLevel impersonationLevel
);
public function KerberosTokenProvider(
     targetPrincipal : String, 
     impersonationLevel : ImpersonationLevel
);

Parameters

  • targetPrincipal
    Specifies the target principal name. The format of the target principal name is host/machinename@realm.
  • impersonationLevel
    One of the ImpersonationLevel values that specifies how a recipient of the KerberosToken security token can use the identity that is associated with the security token.

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

KerberosTokenProvider Class
KerberosTokenProvider Members
Microsoft.Web.Services3.Design Namespace
ImpersonationLevel