CoseHeaderMap Class

Definition

Represents a collection of header parameters of a COSE message.

public ref class CoseHeaderMap sealed : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue>>, System::Collections::Generic::IDictionary<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue>>, System::Collections::Generic::IReadOnlyCollection<System::Collections::Generic::KeyValuePair<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue>>, System::Collections::Generic::IReadOnlyDictionary<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue>
public sealed class CoseHeaderMap : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue>>, System.Collections.Generic.IDictionary<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue>>, System.Collections.Generic.IReadOnlyDictionary<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue>
type CoseHeaderMap = class
    interface IDictionary<CoseHeaderLabel, CoseHeaderValue>
    interface ICollection<KeyValuePair<CoseHeaderLabel, CoseHeaderValue>>
    interface seq<KeyValuePair<CoseHeaderLabel, CoseHeaderValue>>
    interface IEnumerable
    interface IReadOnlyDictionary<CoseHeaderLabel, CoseHeaderValue>
    interface IReadOnlyCollection<KeyValuePair<CoseHeaderLabel, CoseHeaderValue>>
Public NotInheritable Class CoseHeaderMap
Implements ICollection(Of KeyValuePair(Of CoseHeaderLabel, CoseHeaderValue)), IDictionary(Of CoseHeaderLabel, CoseHeaderValue), IEnumerable(Of KeyValuePair(Of CoseHeaderLabel, CoseHeaderValue)), IReadOnlyCollection(Of KeyValuePair(Of CoseHeaderLabel, CoseHeaderValue)), IReadOnlyDictionary(Of CoseHeaderLabel, CoseHeaderValue)
Inheritance
CoseHeaderMap
Implements

Constructors

CoseHeaderMap()

Initializes a new instance of the CoseHeaderMap class.

Properties

Count

Gets the number of elements contained in the ICollection<T>.

IsReadOnly

Gets a value that indicates whether the header map is read-only.

Item[CoseHeaderLabel]

Gets or sets the element with the specified key.

Keys

Gets an ICollection<T> containing the keys of the IDictionary<TKey,TValue>.

Values

Gets an ICollection<T> containing the values in the IDictionary<TKey,TValue>.

Methods

Add(CoseHeaderLabel, Byte[])

Adds the specified label and value to the header map.

Add(CoseHeaderLabel, CoseHeaderValue)

Adds an element with the provided key and value to the IDictionary<TKey,TValue>.

Add(CoseHeaderLabel, Int32)

Adds the specified label and value to the header map.

Add(CoseHeaderLabel, ReadOnlySpan<Byte>)

Adds the specified label and value to the header map.

Add(CoseHeaderLabel, String)

Adds the specified label and value to the header map.

Add(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

Adds an item to the ICollection<T>.

Clear()

Removes all items from the ICollection<T>.

Contains(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

Determines whether the ICollection<T> contains a specific value.

ContainsKey(CoseHeaderLabel)

Determines whether the IDictionary<TKey,TValue> contains an element with the specified key.

CopyTo(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>[], Int32)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

Returns an enumerator that iterates through the collection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetValueAsBytes(CoseHeaderLabel)

Gets the value associated with the specified label, as a byte string.

GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

Gets the value associated with the specified label, as a byte string.

GetValueAsInt32(CoseHeaderLabel)

Gets the value associated with the specified label, as a signed integer.

GetValueAsString(CoseHeaderLabel)

Gets the value associated with the specified label, as a text string.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(CoseHeaderLabel)

Removes the element with the specified key from the IDictionary<TKey,TValue>.

Remove(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

Removes the first occurrence of a specific object from the ICollection<T>.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetValue(CoseHeaderLabel, CoseHeaderValue)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IReadOnlyDictionary<CoseHeaderLabel,CoseHeaderValue>.Keys

Gets an enumerable collection that contains the keys in the read-only dictionary.

IReadOnlyDictionary<CoseHeaderLabel,CoseHeaderValue>.Values

Gets an enumerable collection that contains the values in the read-only dictionary.

Extension Methods

AsReadOnly<TKey,TValue>(IDictionary<TKey,TValue>)

Returns a read-only ReadOnlyDictionary<TKey,TValue> wrapper for the current dictionary.

Applies to