You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
708 B
32 lines
708 B
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) |
|
#pragma warning disable |
|
using System; |
|
using System.Collections; |
|
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms; |
|
|
|
namespace BestHTTP.SecureProtocol.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; |
|
} |
|
} |
|
} |
|
#pragma warning restore |
|
#endif
|
|
|