//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace System.IdentityModel.Metadata
{
///
/// Describes the entity descriptor class.
///
public class EntityDescriptor : MetadataBase
{
Collection contacts = new Collection();
EntityId entityId;
string federationId;
Organization organization;
Collection roleDescriptors = new Collection();
///
/// Empty constructor.
///
public EntityDescriptor()
: this(null)
{
}
///
/// Constructs an entity descriptor with the entity id.
///
/// The of this instance.
public EntityDescriptor(EntityId entityId)
{
this.entityId = entityId;
}
///
/// Gets the collection of .
///
public ICollection Contacts
{
get { return this.contacts; }
}
///
/// Gets or sets the .
///
public EntityId EntityId
{
get { return this.entityId; }
set { this.entityId = value; }
}
///
/// Gets or sets the federation id.
///
public string FederationId
{
get { return this.federationId; }
set { this.federationId = value; }
}
///
/// Gets or sets the organization.
///
public Organization Organization
{
get { return this.organization; }
set { this.organization = value; }
}
///
/// Gets the collection of role descriptors.
///
public ICollection RoleDescriptors
{
get { return this.roleDescriptors; }
}
}
}