KerberosToken Constructor (String)

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 kerberosToken1 As New KerberosToken(targetPrincipal)

Syntax

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

Parameters

  • targetPrincipal
    The service principal name for the security token.

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