ServiceCredentialsSecurityTokenManager.GetIdentityOfSelf Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Возвращает удостоверение EndpointIdentity на основе требований маркера безопасности.
public:
virtual System::ServiceModel::EndpointIdentity ^ GetIdentityOfSelf(System::IdentityModel::Selectors::SecurityTokenRequirement ^ tokenRequirement);
public virtual System.ServiceModel.EndpointIdentity GetIdentityOfSelf (System.IdentityModel.Selectors.SecurityTokenRequirement tokenRequirement);
abstract member GetIdentityOfSelf : System.IdentityModel.Selectors.SecurityTokenRequirement -> System.ServiceModel.EndpointIdentity
override this.GetIdentityOfSelf : System.IdentityModel.Selectors.SecurityTokenRequirement -> System.ServiceModel.EndpointIdentity
Public Overridable Function GetIdentityOfSelf (tokenRequirement As SecurityTokenRequirement) As EndpointIdentity
Параметры
- tokenRequirement
- SecurityTokenRequirement
Требование маркера безопасности.
Возвращаемое значение
Идентификатор конечной точки, соответствующий объекту tokenRequirement. Возвращается значение null, если идентификатор не может быть создан из tokenRequirement.
Реализации
Исключения
tokenRequirement имеет значение null.
Комментарии
Этот метод вызывается инфраструктурой WCF для получения EndpointIdentity соответствующего конечной точке службы.