Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)
Usage
Visual Basic |
---|
Dim upn As String Dim authenticationType As String Dim useWindowsTokenService As Boolean Dim issuerName As String Dim returnValue As WindowsClaimsIdentity returnValue = WindowsClaimsIdentity.CreateFromUpn(upn, authenticationType, useWindowsTokenService, issuerName) |
Syntax
Visual Basic |
---|
Public Shared Function CreateFromUpn ( _ upn As String, _ authenticationType As String, _ useWindowsTokenService As Boolean, _ issuerName As String _ ) As WindowsClaimsIdentity |
C# |
---|
public static WindowsClaimsIdentity CreateFromUpn ( string upn, string authenticationType, bool useWindowsTokenService, string issuerName ) |
C++ |
---|
public: static WindowsClaimsIdentity^ CreateFromUpn ( String^ upn, String^ authenticationType, bool useWindowsTokenService, String^ issuerName ) |
J# |
---|
public static WindowsClaimsIdentity CreateFromUpn ( String upn, String authenticationType, boolean useWindowsTokenService, String issuerName ) |
JScript |
---|
public static function CreateFromUpn ( upn : String, authenticationType : String, useWindowsTokenService : boolean, issuerName : String ) : WindowsClaimsIdentity |
Parameters
- upn
-
The Kerberos User Principal Name (UPN) of the user which this T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity represents.
- authenticationType
-
The type of authentication used.
- useWindowsTokenService
-
A boolean flag indicating whether the Windows Token Service is to be used for this operation.
- issuerName
-
A string indicating the issuer name for the claims.
Exceptions
Exception type | Condition |
---|
Remarks
If configured, the Windows Token Service will be utilized to ensure that this T:Microsoft.IdentityModel.Claims.WindowsClaimsIdentity allows impersonation.
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.