SamlSecurityTokenHandler.FindUpn(ClaimsIdentity) 方法
定义
在指定的 ClaimsIdentity 对象中查找 UPN 声明值,目的是为了把其标志映射到 WindowsIdentity 对象。Finds the UPN claim value in the specified ClaimsIdentity object for the purpose of mapping the identity to a WindowsIdentity object.
protected:
virtual System::String ^ FindUpn(System::Security::Claims::ClaimsIdentity ^ claimsIdentity);
protected virtual string FindUpn (System.Security.Claims.ClaimsIdentity claimsIdentity);
abstract member FindUpn : System.Security.Claims.ClaimsIdentity -> string
override this.FindUpn : System.Security.Claims.ClaimsIdentity -> string
Protected Overridable Function FindUpn (claimsIdentity As ClaimsIdentity) As String
参数
- claimsIdentity
- ClaimsIdentity
包含所需 UPN 声明的声明标识对象。The claims identity object containing the desired UPN claim.
返回
一个字符串,其中包含找到的 UPN 声明值。A string that contains the UPN claim value found.