//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IdentityModel.Tokens;
namespace System.IdentityModel.Metadata
{
///
/// Defines the key descriptor.
///
public class KeyDescriptor
{
SecurityKeyIdentifier _ski;
KeyType _use = KeyType.Unspecified;
Collection _encryptionMethods = new Collection();
///
/// Empty constructor.
///
public KeyDescriptor()
: this(null)
{
}
///
/// Constructs with a security key identifier.
///
/// The for this instance.
public KeyDescriptor(SecurityKeyIdentifier ski)
{
_ski = ski;
}
///
/// Gets or sets the .
///
public SecurityKeyIdentifier KeyInfo
{
get { return _ski; }
set { _ski = value; }
}
///
/// Gets or sets the .
///
public KeyType Use
{
get { return _use; }
set { _use = value; }
}
///
/// Gets the collection of .
///
public ICollection EncryptionMethods
{
get { return _encryptionMethods; }
}
}
}