ClaimTypes Class

Definition

Defines constants for the well-known claim types that can be assigned to a subject. This class cannot be inherited.

public static class ClaimTypes
[System.Runtime.InteropServices.ComVisible(false)]
public static class ClaimTypes
Inheritance
ClaimTypes
Attributes

Remarks

These constants define URIs for well-known claim types.

备注

Schema URIs are mostly used as identifiers and shouldn't be expected to work as hyperlinks.

Fields

Actor

Specifies the URI for an actor claim; http://schemas.xmlsoap.org/ws/2009/09/identity/claims/actor.

Anonymous

Specifies the URI for a claim that indicates the anonymous user; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/anonymous.

Authentication

Specifies the URI for a claim that contains details about whether an identity is authenticated; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/authenticated.

AuthenticationInstant

Specifies the URI for a claim that indicates the instant at which an entity was authenticated; http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationinstant.

AuthenticationMethod

Specifies the URI for a claim that indicates the method with which an entity was authenticated; http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod.

AuthorizationDecision

Specifies the URI for a claim that indicates the authorization decision on an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/authorizationdecision.

CookiePath

Specifies the URI for a cookie path claim; http://schemas.microsoft.com/ws/2008/06/identity/claims/cookiepath.

Country

Specifies the URI for a claim that indicates the country or region in which an entity resides; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country.

DateOfBirth

Specifies the URI for a claim that indicates the date of birth of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/dateofbirth.

DenyOnlyPrimaryGroupSid

Specifies the URI for a claim that indicates the deny-only primary group SID on an entity; http://schemas.microsoft.com/ws/2008/06/identity/claims/denyonlyprimarygroupsid.

DenyOnlyPrimarySid

Specifies the URI for a claim that indicates the deny-only primary SID on an entity; http://schemas.microsoft.com/ws/2008/06/identity/claims/denyonlyprimarysid.

DenyOnlySid

Specifies the URI for a claim that indicates a deny-only security identifier (SID) for an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/denyonlysid.

DenyOnlyWindowsDeviceGroup

Specifies the URI for a claim that indicates the Windows deny-only group SID of a device; http://schemas.microsoft.com/ws/2008/06/identity/claims/denyonlywindowsdevicegroup.

Dns

Specifies the URI for a claim that indicates the DNS name associated with the computer name or with the alternative name of either the subject or issuer of an X.509 certificate; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/dns.

Dsa

Specifies the URI for a digital signature algorithm (DSA) claim; http://schemas.microsoft.com/ws/2008/06/identity/claims/dsa.

Email

Specifies the URI for a claim that indicates the email address of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress.

Expiration

Specifies the URI for an expiration claim; http://schemas.microsoft.com/ws/2008/06/identity/claims/expiration.

Expired

Specifies the URI for a claim that indicates the expired status of an entity; http://schemas.microsoft.com/ws/2008/06/identity/claims/expired.

Gender

Specifies the URI for a claim that indicates the gender of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/gender.

GivenName

Specifies the URI for a claim that indicates the given name of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname.

GroupSid

Specifies the URI for a claim that indicates the SID for the group of an entity; http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid.

Hash

Specifies the URI for a hash value claim; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/hash.

HomePhone

Specifies the URI for a claim that indicates the home phone number of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/homephone.

IsPersistent

Specifies the URI for a persistence claim; http://schemas.microsoft.com/ws/2008/06/identity/claims/ispersistent.

Locality

Specifies the URI for a claim that indicates the locale in which an entity resides; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/locality.

MobilePhone

Specifies the URI for a claim that indicates the mobile phone number of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mobilephone.

Name

Specifies the URI for a claim that indicates the name of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name.

NameIdentifier

Specifies the URI for a claim that indicates the name identifier of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier.

OtherPhone

Specifies the URI for a claim that indicates the alternative phone number of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/otherphone.

PostalCode

Specifies the URI for a claim that indicates the postal code of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/postalcode.

PrimaryGroupSid

Specifies the URI for a claim that indicates the primary group SID of an entity; http://schemas.microsoft.com/ws/2008/06/identity/claims/primarygroupsid.

PrimarySid

Specifies the URI for a claim that indicates the primary SID of an entity; http://schemas.microsoft.com/ws/2008/06/identity/claims/primarysid.

Role

Specifies the URI for a claim that indicates the role of an entity; http://schemas.microsoft.com/ws/2008/06/identity/claims/role.

Rsa

Specifies the URI for an RSA key claim; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/rsa.

SerialNumber

Specifies the URI for a serial number claim; http://schemas.microsoft.com/ws/2008/06/identity/claims/serialnumber.

Sid

Specifies the URI for a security identifier (SID) claim; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/sid.

Spn

Specifies the URI for a service principal name (SPN) claim; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/spn.

StateOrProvince

Specifies the URI for a claim that indicates the state or province in which an entity resides; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/stateorprovince.

StreetAddress

Specifies the URI for a claim that indicates the street address of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/streetaddress.

Surname

Specifies the URI for a claim that indicates the surname of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname.

System

Specifies the URI for a system entity claim; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/system.

Thumbprint

Specifies the URI for a thumbprint claim; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/thumbprint.

Upn

Specifies the URI for a user principal name (UPN) claim; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn.

Uri

Specifies the URI for a URI claim; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/uri.

UserData

Specifies the URI for a user data claim; http://schemas.microsoft.com/ws/2008/06/identity/claims/userdata.

Version

Specifies the URI for a version claim; http://schemas.microsoft.com/ws/2008/06/identity/claims/version.

Webpage

Specifies the URI for a claim that indicates the webpage of an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/webpage.

WindowsAccountName

Specifies the URI for a claim that indicates the Windows domain account name of an entity; http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname.

WindowsDeviceClaim

Specifies the URI for a Windows device claim; http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsdeviceclaim.

WindowsDeviceGroup

Specifies the URI for a claim that indicates the Windows group SID of a device; http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsdevicegroup.

WindowsFqbnVersion

Specifies the URI for a claim that indicates the version of a fully qualified binary name of a Windows binary file; http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsfqbnversion.

WindowsSubAuthority

Specifies the URI for a Windows subauthority claim; http://schemas.microsoft.com/ws/2008/06/identity/claims/windowssubauthority.

WindowsUserClaim

Specifies the URI for a Windows user claim; http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsuserclaim.

X500DistinguishedName

Specifies the URI for an X.500 distinguished name claim, such as the subject of an X.509 Public Key Certificate or an entry identifier in a directory services Directory Information Tree; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/x500distinguishedname.

Applies to

产品 版本
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0