This documentation is archived and is not being maintained.

SecurityMessageProperty Class

Contains security-related properties and is attached to a message.


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

public class SecurityMessageProperty : IMessageProperty, 

The SecurityMessageProperty type exposes the following members.

Public methodSecurityMessagePropertyInitializes a new instance of the SecurityMessageProperty class.

Public propertyExternalAuthorizationPoliciesGets or sets a collection of external authorization policies.
Public propertyHasIncomingSupportingTokensIndicates whether the incoming message contains at least one supporting security token.
Public propertyIncomingSupportingTokensGets or sets a collection of incoming supporting tokens.
Public propertyInitiatorTokenGets or sets the SecurityTokenSpecification initiator token for this message.
Public propertyOutgoingSupportingTokensGets a collection of outgoing SupportingTokenSpecification objects.
Public propertyProtectionTokenGets or sets the SecurityTokenSpecification protection token for this message.
Public propertyRecipientTokenGets or sets the SecurityTokenSpecification recipient token for this message.
Public propertySenderIdPrefixGets or sets the sender ID prefix for this message.
Public propertyServiceSecurityContextGets or sets the ServiceSecurityContext for this message.
Public propertyTransportTokenGets or sets the SecurityTokenSpecification transport token for this message.

Public methodCreateCopyClones the current instance of this class.
Public methodDisposeDisposes of the current instance of this class.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from 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 methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodStatic memberGetOrCreateGets or creates an instance of this class from the specified message.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Client authentication results are translated into an instance of ServiceSecurityContext, which is attached to the message using a SecurityMessageProperty. This property can be used by higher layers to implement custom authorization logic.

.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.