SecurityKeyIdentifier Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a key identifier.
public ref class SecurityKeyIdentifier : System::Collections::Generic::IEnumerable<System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^>
public class SecurityKeyIdentifier : System.Collections.Generic.IEnumerable<System.IdentityModel.Tokens.SecurityKeyIdentifierClause>
type SecurityKeyIdentifier = class
interface seq<SecurityKeyIdentifierClause>
interface IEnumerable
Public Class SecurityKeyIdentifier
Implements IEnumerable(Of SecurityKeyIdentifierClause)
- Inheritance
-
SecurityKeyIdentifier
- Implements
Remarks
Typically, the SecurityKeyIdentifier is not used, other than when a custom security token service is created. When a security token service returns a security token, the issued security token contains references to attached and unattached security tokens. Attached references refer to security tokens that are contained within the security header of a SOAP message and unattached references are security tokens that are not included within the security header of a SOAP message. These references typically affirm the authenticity of the issued security token. These references are represented by classes that derive from the SecurityKeyIdentifierClause class. The SecurityKeyIdentifier class contains the collection of these references.
Constructors
| Name | Description |
|---|---|
| SecurityKeyIdentifier() |
Initializes a new instance of the SecurityKeyIdentifier class. |
| SecurityKeyIdentifier(SecurityKeyIdentifierClause[]) |
Initializes a new instance of the SecurityKeyIdentifier class using the specified key identifier clauses. |
Properties
| Name | Description |
|---|---|
| CanCreateKey |
Gets a value that indicates whether a key can be created for at least one of the key identifier clauses. |
| Count |
Gets the number of key identifier clauses. |
| IsReadOnly |
Gets a value that indicates whether the properties of this instance are read-only. |
| Item[Int32] |
Gets the key identifier clause at the specified index. |
Methods
| Name | Description |
|---|---|
| Add(SecurityKeyIdentifierClause) |
Adds a key identifier clause to the end of the list. |
| CreateKey() |
Creates a key for one of the key identifier clauses. |
| Find<TClause>() |
Searches for a key identifier clause of the specified type and returns the first occurrence within the entire collection. |
| GetEnumerator() |
Returns an enumerator that iterates through the collection of key identifier clauses. |
| MakeReadOnly() |
Causes this instance to be read-only. |
| ToString() |
Returns the current object. |
| TryFind<TClause>(TClause) |
Searches for a key identifier clause of the specified type and returns a value that indicates whether a clause of that type could be found. When a type is found it is returned in the |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through the collection of key identifier clauses. |