ServiceCredentialsSecurityTokenManager.GetIdentityOfSelf 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
是根據安全令牌需求取得的 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 對應服務端點的 。