This documentation is archived and is not being maintained.

EndpointIdentity Class

An abstract class that when implemented provides an identity that enables the authentication of an endpoint by clients that exchange messages with it.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public abstract class EndpointIdentity

The EndpointIdentity type exposes the following members.

Protected methodEndpointIdentityCreates an empty EndpointIdentity instance.

Public propertyIdentityClaimGets the identity claim that corresponds to the identity.

Public methodStatic memberCreateDnsIdentityCreates a DNS identity with a specified DNS name.
Public methodStatic memberCreateIdentityCreates an identity with the specified claim.
Public methodStatic memberCreateRsaIdentity(String)Creates an RSA identity with the specified public key.
Public methodStatic memberCreateRsaIdentity(X509Certificate2)Creates an RSA identity with the specified X.509 certificate.
Public methodStatic memberCreateSpnIdentityCreates a server principal name (SPN) identity with a specified name.
Public methodStatic memberCreateUpnIdentityCreates a user principal name (UPN) identity with a specified name.
Public methodStatic memberCreateX509CertificateIdentity(X509Certificate2)Creates an X509Certificate identity with the specified certificate.
Public methodStatic memberCreateX509CertificateIdentity(X509Certificate2, X509Certificate2Collection)Creates an X509Certificate identity with the specified primary and supporting certificates.
Public methodEqualsReturns a value that determines whether a specified object is equal to the current identity object or if they have equal security properties. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeProvides a hash code for the current instance of the identity. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInitialize(Claim)Initializes an EndpointIdentity with the specified claim.
Protected methodInitialize(Claim, IEqualityComparer<Claim>)Initializes an EndpointIdentity with the specified claim and an interface and compares equality.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns the identity. (Overrides Object.ToString().)

The value of the identity for an endpoint can be set with constructors of EndpointAddress, where its value can also be accessed as a read-only Identity property.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.