System.Security.Claims
Represents a claim.
Initializes a new instance of the class with the specified claim type, and value.
The claim type.
The claim value.
or is null.
Initializes a new instance of the class with the specified claim type, value, and value type.
The claim type.
The claim value.
The claim value type. If this parameter is null, then is used.
or is null.
Initializes a new instance of the class with the specified claim type, value, value type, and issuer.
The claim type.
The claim value.
The claim value type. If this parameter is null, then is used.
The claim issuer. If this parameter is empty or null, then is used.
or is null.
Initializes a new instance of the class with the specified claim type, value, value type, issuer, and original issuer.
The claim type.
The claim value.
The claim value type. If this parameter is null, then is used.
The claim issuer. If this parameter is empty or null, then is used.
The original issuer of the claim. If this parameter is empty or null, then the property is set to the value of the property.
or is null.
Initializes a new instance of the class with the specified claim type, value, value type, issuer, original issuer and subject.
The claim type.
The claim value.
The claim value type. If this parameter is null, then is used.
The claim issuer. If this parameter is empty or null, then is used.
The original issuer of the claim. If this parameter is empty or null, then the property is set to the value of the property.
The subject that this claim describes.
or is null.
Returns a new object copied from this object. The new claim does not have a subject.
The new claim object.
Returns a new object copied from this object. The subject of the new claim is set to the specified ClaimsIdentity.
The new claim object.
The intended subject of the new claim.
Gets the issuer of the claim.
A name that refers to the issuer of the claim.
Gets the original issuer of the claim.
A name that refers to the original issuer of the claim.
Gets a dictionary that contains additional properties associated with this claim.
A dictionary that contains additional properties associated with the claim. The properties are represented as name-value pairs.
Gets the subject of the claim.
The subject of the claim.
Returns a string representation of this object.
The string representation of this object.
Gets the claim type of the claim.
The claim type.
Gets the value of the claim.
The claim value.
Gets the value type of the claim.
The claim value type.
Represents a claims-based identity.
Initializes a new instance of the class with an empty claims collection.
Initializes a new instance of the class using an enumerated collection of objects.
The claims with which to populate the claims identity.
Initializes a new instance of the class with the specified claims and authentication type.
The claims with which to populate the claims identity.
The type of authentication used.
Initializes a new instance of the class with the specified, claims, authentication type, name claim type, and role claim type.
The claims with which to populate the claims identity.
The type of authentication used.
The claim type to use for name claims.
The claim type to use for role claims.
Initializes a new instance of the class using the name and authentication type from the specified .
The identity from which to base the new claims identity.
Initializes a new instance of the class using the specified claims and the specified .
The identity from which to base the new claims identity.
The claims with which to populate the claims identity.
Initializes a new instance of the class from the specified using the specified claims, authentication type, name claim type, and role claim type.
The identity from which to base the new claims identity.
The claims with which to populate the new claims identity.
The type of authentication used.
The claim type to use for name claims.
The claim type to use for role claims.
Initializes a new instance of the class with an empty claims collection and the specified authentication type.
The type of authentication used.
Initializes a new instance of the class with the specified authentication type, name claim type, and role claim type.
The type of authentication used.
The claim type to use for name claims.
The claim type to use for role claims.
Gets or sets the identity of the calling party that was granted delegation rights.
The calling party that was granted delegation rights.
An attempt to set the property to the current instance occurs.
Adds a single claim to this claims identity.
The claim to add.
is null.
Adds a list of claims to this claims identity.
The claims to add.
is null.
Gets the authentication type.
The authentication type.
Gets or sets the token that was used to create this claims identity.
The bootstrap context.
Gets the claims associated with this claims identity.
The collection of claims associated with this claims identity.
Returns a new copied from this claims identity.
A copy of the current instance.
The default issuer; “LOCAL AUTHORITY”.
The default name claim type; .
The default role claim type; .
Retrieves all of the claims that are matched by the specified predicate.
The matching claims. The list is read-only.
The function that performs the matching logic.
is null.
Retrieves all of the claims that have the specified claim type.
The matching claims. The list is read-only.
The claim type against which to match claims.
is null.
Retrieves the first claim that is matched by the specified predicate.
The first matching claim or null if no match is found.
The function that performs the matching logic.
is null.
Retrieves the first claim with the specified claim type.
The first matching claim or null if no match is found.
The claim type to match.
is null.
Determines whether this claims identity has a claim that is matched by the specified predicate.
true if a matching claim exists; otherwise, false.
The function that performs the matching logic.
is null.
Determines whether this claims identity has a claim with the specified claim type and value.
true if a match is found; otherwise, false.
The type of the claim to match.
The value of the claim to match.
is null.-or- is null.
Gets a value that indicates whether the identity has been authenticated.
true if the identity has been authenticated; otherwise, false.
Gets or sets the label for this claims identity.
The label.
Gets the name of this claims identity.
The name or null.
Gets the claim type that is used to determine which claims provide the value for the property of this claims identity.
The name claim type.
Attempts to remove a claim from the claims identity.
The claim to remove.
The claim cannot be removed.
Gets the claim type that will be interpreted as a .NET Framework role among the claims in this claims identity.
The role claim type.
Attempts to remove a claim from the claims identity.
true if the claim was successfully removed; otherwise, false.
The claim to remove.
An implementation that supports multiple claims-based identities.
Initializes a new instance of the class.
Initializes a new instance of the class using the specified claims identities.
The identities from which to initialize the new claims principal.
is null.
Initializes a new instance of the class from the specified identity.
The identity from which to initialize the new claims principal.
is null.
Initializes a new instance of the class from the specified principal.
The principal from which to initialize the new claims principal.
is null.
Adds the specified claims identities to this claims principal.
The claims identities to add.
is null.
Adds the specified claims identity to this claims principal.
The claims identity to add.
is null.
Gets a collection that contains all of the claims from all of the claims identities associated with this claims principal.
The claims associated with this principal.
Gets and sets the delegate used to select the claims principal returned by the property.
The delegate. The default is null.
Gets the current claims principal.
The current claims principal.
Retrieves all of the claims that are matched by the specified predicate.
The matching claims.
The function that performs the matching logic.
is null.
Retrieves all or the claims that have the specified claim type.
The matching claims.
The claim type against which to match claims.
is null.
Retrieves the first claim that is matched by the specified predicate.
The first matching claim or null if no match is found.
The function that performs the matching logic.
is null.
Retrieves the first claim with the specified claim type.
The first matching claim or null if no match is found.
The claim type to match.
is null.
Determines whether any of the claims identities associated with this claims principal contains a claim that is matched by the specified predicate.
true if a matching claim exists; otherwise, false.
The function that performs the matching logic.
is null.
Determines whether any of the claims identities associated with this claims principal contains a claim with the specified claim type and value.
true if a matching claim exists; otherwise, false.
The type of the claim to match.
The value of the claim to match.
is null.-or- is null.
Gets a collection that contains all of the claims identities associated with this claims principal.
The collection of claims identities.
Gets the primary claims identity associated with this claims principal.
The primary claims identity associated with this claims principal.
Returns a value that indicates whether the entity (user) represented by this claims principal is in the specified role.
true if claims principal is in the specified role; otherwise, false.
The role for which to check.
Gets and sets the delegate used to select the claims identity returned by the property.
The delegate. The default is null.
Defines constants for the well-known claim types that can be assigned to a subject. This class cannot be inherited.
http://schemas.xmlsoap.org/ws/2009/09/identity/claims/actor.
The URI for a claim that specifies the anonymous user; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/anonymous.
The URI for a claim that specifies details about whether an identity is authenticated, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/authenticated.
The URI for a claim that specifies the instant at which an entity was authenticated; http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationinstant.
The URI for a claim that specifies the method with which an entity was authenticated; http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod.
The URI for a claim that specifies an authorization decision on an entity; http://schemas.xmlsoap.org/ws/2005/05/identity/claims/authorizationdecision.
The URI for a claim that specifies the cookie path; http://schemas.microsoft.com/ws/2008/06/identity/claims/cookiepath.
The URI for a claim that specifies the country/region in which an entity resides, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country.
The URI for a claim that specifies the date of birth of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/dateofbirth.
The URI for a claim that specifies the deny-only primary group SID on an entity; http://schemas.microsoft.com/ws/2008/06/identity/claims/denyonlyprimarygroupsid. A deny-only SID denies the specified entity to a securable object.
The URI for a claim that specifies the deny-only primary SID on an entity; http://schemas.microsoft.com/ws/2008/06/identity/claims/denyonlyprimarysid. A deny-only SID denies the specified entity to a securable object.
The URI for a claim that specifies a deny-only security identifier (SID) for an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/denyonlysid. A deny-only SID denies the specified entity to a securable object.
http://schemas.microsoft.com/ws/2008/06/identity/claims/denyonlywindowsdevicegroup.
The URI for a claim that specifies 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.
http://schemas.microsoft.com/ws/2008/06/identity/claims/dsa.
The URI for a claim that specifies the email address of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/email.
http://schemas.microsoft.com/ws/2008/06/identity/claims/expiration.
http://schemas.microsoft.com/ws/2008/06/identity/claims/expired.
The URI for a claim that specifies the gender of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/gender.
The URI for a claim that specifies the given name of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname.
The URI for a claim that specifies the SID for the group of an entity, http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid.
The URI for a claim that specifies a hash value, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/hash.
The URI for a claim that specifies the home phone number of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/homephone.
http://schemas.microsoft.com/ws/2008/06/identity/claims/ispersistent.
The URI for a claim that specifies the locale in which an entity resides, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/locality.
The URI for a claim that specifies the mobile phone number of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mobilephone.
The URI for a claim that specifies the name of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name.
The URI for a claim that specifies the name of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier.
The URI for a claim that specifies the alternative phone number of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/otherphone.
The URI for a claim that specifies the postal code of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/postalcode.
The URI for a claim that specifies the primary group SID of an entity, http://schemas.microsoft.com/ws/2008/06/identity/claims/primarygroupsid.
The URI for a claim that specifies the primary SID of an entity, http://schemas.microsoft.com/ws/2008/06/identity/claims/primarysid.
The URI for a claim that specifies the role of an entity, http://schemas.microsoft.com/ws/2008/06/identity/claims/role.
The URI for a claim that specifies an RSA key, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/rsa.
The URI for a claim that specifies a serial number, http://schemas.microsoft.com/ws/2008/06/identity/claims/serialnumber.
The URI for a claim that specifies a security identifier (SID), http://schemas.xmlsoap.org/ws/2005/05/identity/claims/sid.
The URI for a claim that specifies a service principal name (SPN) claim, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/spn.
The URI for a claim that specifies the state or province in which an entity resides, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/stateorprovince.
The URI for a claim that specifies the street address of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/streetaddress.
The URI for a claim that specifies the surname of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname.
The URI for a claim that identifies the system entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/system.
The URI for a claim that specifies a thumbprint, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/thumbprint. A thumbprint is a globally unique SHA-1 hash of an X.509 certificate.
The URI for a claim that specifies a user principal name (UPN), http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn.
The URI for a claim that specifies a URI, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/uri.
http://schemas.microsoft.com/ws/2008/06/identity/claims/userdata.
http://schemas.microsoft.com/ws/2008/06/identity/claims/version.
The URI for a claim that specifies the webpage of an entity, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/webpage.
The URI for a claim that specifies the Windows domain account name of an entity, http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname.
http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsdeviceclaim.
http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsdevicegroup.
http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsfqbnversion.
http://schemas.microsoft.com/ws/2008/06/identity/claims/windowssubauthority.
http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsuserclaim.
The URI for a distinguished name claim of an X.509 certificate, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/x500distinguishedname. The X.500 standard defines the methodology for defining distinguished names that are used by X.509 certificates.
Defines claim value types according to the type URIs defined by W3C and OASIS. This class cannot be inherited.
A URI that represents the base64Binary XML data type.
A URI that that represents the base64Octet XML data type.
A URI that represents the boolean XML data type.
A URI that represents the date XML data type.
A URI that represents the dateTime XML data type.
A URI that represents the daytimeDuration XQuery data type.
A URI that represents the dns SOAP data type.
A URI that represents the double XML data type.
A URI that represents the DSAKeyValue XML Signature data type.
A URI that represents the emailaddress SOAP data type.
A URI that represents the fqbn XML data type.
A URI that represents the hexBinary XML data type.
A URI that represents the integer XML data type.
A URI that represents the integer32 XML data type.
A URI that represents the integer64 XML data type.
A URI that represents the KeyInfo XML Signature data type.
A URI that represents the rfc822Name XACML 1.0 data type.
A URI that represents the rsa SOAP data type.
A URI that represents the RSAKeyValue XML Signature data type.
A URI that represents the sid XML data type.
A URI that represents the string XML data type.
A URI that represents the time XML data type.
A URI that represents the uinteger32 XML data type.
A URI that represents the uinteger64 XML data type.
A URI that represents the UPN SOAP data type.
A URI that represents the x500Name XACML 1.0 data type.
A URI that represents the yearMonthDuration XQuery data type.
Represents a generic user.
Initializes a new instance of the class by using the specified object.
The object from which to construct the new instance of .
Initializes a new instance of the class representing the user with the specified name.
The name of the user on whose behalf the code is running.
The parameter is null.
Initializes a new instance of the class representing the user with the specified name and authentication type.
The name of the user on whose behalf the code is running.
The type of authentication used to identify the user.
The parameter is null.-or- The parameter is null.
Gets the type of authentication used to identify the user.
The type of authentication used to identify the user.
Gets all claims for the user represented by this generic identity.
A collection of claims for this object.
Creates a new object that is a copy of the current instance.
A copy of the current instance.
Gets a value indicating whether the user has been authenticated.
true if the user was has been authenticated; otherwise, false.
Gets the user's name.
The name of the user on whose behalf the code is being run.
Represents a generic principal.
Initializes a new instance of the class from a user identity and an array of role names to which the user represented by that identity belongs.
A basic implementation of that represents any user.
An array of role names to which the user represented by the parameter belongs.
The parameter is null.
Gets the of the user represented by the current .
The of the user represented by the .
Determines whether the current belongs to the specified role.
true if the current is a member of the specified role; otherwise, false.
The name of the role for which to check membership.