WS_SECURITY_CONSTRAINTS structure (webservices.h)

This structure specifies the security related constraints as part of WS_POLICY_CONSTRAINTS.

Syntax

typedef struct _WS_SECURITY_CONSTRAINTS {
  WS_SECURITY_PROPERTY_CONSTRAINT *securityPropertyConstraints;
  ULONG                           securityPropertyConstraintCount;
  WS_SECURITY_BINDING_CONSTRAINT  **securityBindingConstraints;
  ULONG                           securityBindingConstraintCount;
} WS_SECURITY_CONSTRAINTS;

Members

securityPropertyConstraints

An array of security property constraints which override the default set of constraints. The constraints specified here, combined with the default set of constraints limits the set of policies that will be matched.

If a security property constraint is not specified for a given property, then a default constraint value will be used. See WS_SECURITY_PROPERTY_CONSTRAINT for the supported set of properties and their default values.

Note that the defaults constraints for WS_SECURITY_PROPERTY_CONSTRAINT are the same as the defaults for WS_SECURITY_PROPERTY.

securityPropertyConstraintCount

The number of elements specified in the securityPropertyConstraints array.

If this value is 0, then the securityPropertyConstraints array may be NULL.

securityBindingConstraints

Any array of security binding constraints which taken as a unit specify the type of security to match in the policy.

The type of each WS_SECURITY_BINDING_CONSTRAINT corresponds to the types of security that is specified using a WS_SECURITY_BINDING structure. Each security binding specifies one security token, and similarly, each security binding constraint specifies constraints on one security token.

Specifying zero constraints indicates no security.

securityBindingConstraintCount

The number of elements specified in the securityBindingConstraints array.

If this value is 0, then the securityBindingConstraints array may be NULL.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Header webservices.h