Initial Commit
This commit is contained in:
28
iTechSharp/srcbc/cms/SimpleAttributeTableGenerator.cs
Normal file
28
iTechSharp/srcbc/cms/SimpleAttributeTableGenerator.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
using Org.BouncyCastle.Asn1.Cms;
|
||||
|
||||
namespace Org.BouncyCastle.Cms
|
||||
{
|
||||
/**
|
||||
* Basic generator that just returns a preconstructed attribute table
|
||||
*/
|
||||
public class SimpleAttributeTableGenerator
|
||||
: CmsAttributeTableGenerator
|
||||
{
|
||||
private readonly AttributeTable attributes;
|
||||
|
||||
public SimpleAttributeTableGenerator(
|
||||
AttributeTable attributes)
|
||||
{
|
||||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
public virtual AttributeTable GetAttributes(
|
||||
IDictionary parameters)
|
||||
{
|
||||
return attributes;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user