Initial Commit
This commit is contained in:
32
iTechSharp/srcbc/pkcs/AsymmetricKeyEntry.cs
Normal file
32
iTechSharp/srcbc/pkcs/AsymmetricKeyEntry.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.Collections;
|
||||
|
||||
using Org.BouncyCastle.Crypto;
|
||||
|
||||
namespace Org.BouncyCastle.Pkcs
|
||||
{
|
||||
public class AsymmetricKeyEntry
|
||||
: Pkcs12Entry
|
||||
{
|
||||
private readonly AsymmetricKeyParameter key;
|
||||
|
||||
public AsymmetricKeyEntry(
|
||||
AsymmetricKeyParameter key)
|
||||
: base(new Hashtable())
|
||||
{
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public AsymmetricKeyEntry(
|
||||
AsymmetricKeyParameter key,
|
||||
Hashtable attributes)
|
||||
: base(attributes)
|
||||
{
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public AsymmetricKeyParameter Key
|
||||
{
|
||||
get { return this.key; }
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user