//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
namespace System.IdentityModel.Metadata
{
using System;
///
/// Defines the encryption method.
///
public class EncryptionMethod
{
Uri _algorithm;
///
/// Constructs an encryption method with the algorithm.
///
/// The encryption algorithm.
/// If the algorithm is null.
public EncryptionMethod(Uri algorithm)
{
if (algorithm == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("algorithm");
}
_algorithm = algorithm;
}
///
/// Gets or sets the encryption method algorithm attribute.
///
/// If the new value is null.
public Uri Algorithm
{
get { return _algorithm; }
set
{
if (value == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
}
_algorithm = value;
}
}
}
}