ServiceAuthorizationManager.GetAuthorizationPolicies(OperationContext) Método

Definición

Obtiene el conjunto de directivas que participan en la evaluación de la directiva.Gets the set of policies that participate in policy evaluation.

protected:
 virtual System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ GetAuthorizationPolicies(System::ServiceModel::OperationContext ^ operationContext);
protected virtual System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> GetAuthorizationPolicies (System.ServiceModel.OperationContext operationContext);
abstract member GetAuthorizationPolicies : System.ServiceModel.OperationContext -> System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy>
override this.GetAuthorizationPolicies : System.ServiceModel.OperationContext -> System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy>
Protected Overridable Function GetAuthorizationPolicies (operationContext As OperationContext) As ReadOnlyCollection(Of IAuthorizationPolicy)

Parámetros

operationContext
OperationContext

OperationContext de la solicitud de la autorización actual.The OperationContext of the current authorization request.

Devoluciones

ReadOnlyCollection<IAuthorizationPolicy>

ReadOnlyCollection<T> de tipo IAuthorizationPolicy.A ReadOnlyCollection<T> of type IAuthorizationPolicy.

Comentarios

La implementación de Windows Communication Foundation (WCF) proporciona un conjunto predeterminado de directivas de autorización.The Windows Communication Foundation (WCF) implementation provides a default set of authorization policies. Éstos incluyen el token primario que contiene las credenciales del solicitante y todos los tokens auxiliares, tokens de transporte y directivas externas si se especifica.These include the primary token that contains the credentials of the requester and all supporting tokens, transport tokens, and external policies if specified.

Puede invalidar esta implementación y proporcionar un conjunto diferente de directivas.You can override this implementation and provide a different set of policies.

Se aplica a