Sdílet prostřednictvím


KerberosToken Constructor (String, ImpersonationLevel)

Initializes a new instance of the KerberosToken class using the service principal name.

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

Usage

'Usage
Dim targetPrincipal As String
Dim level As ImpersonationLevel
Dim kerberosToken1 As New KerberosToken(targetPrincipal, level)

Syntax

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

Parameters

  • targetPrincipal
    The service principal name for the security token.
  • level
    An ImpersonationLevel that specifies how a recipient of this security token can use the identity associated with the Principal property.

Exceptions

Exception type Condition
ArgumentNullException

targetPrincipal is null.

Remarks

The service principal name must be in one of the following formats: host/<hostname>@<domain> or <hostname> , where hostname is the name of the computer that hosts the target Web service and domain is the fully qualified domain name of the Kerberos realm in which the host computer resides.

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

KerberosToken Class
KerberosToken Members
Microsoft.Web.Services3.Security.Tokens Namespace