add all
This commit is contained in:
31
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/pkcs/Pkcs12Entry.cs
vendored
Normal file
31
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/pkcs/Pkcs12Entry.cs
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Pkcs
|
||||
{
|
||||
public abstract class Pkcs12Entry
|
||||
{
|
||||
private readonly IDictionary<DerObjectIdentifier, Asn1Encodable> m_attributes;
|
||||
|
||||
protected internal Pkcs12Entry(IDictionary<DerObjectIdentifier, Asn1Encodable> attributes)
|
||||
{
|
||||
m_attributes = attributes;
|
||||
}
|
||||
|
||||
public Asn1Encodable this[DerObjectIdentifier oid]
|
||||
{
|
||||
get { return CollectionUtilities.GetValueOrNull(m_attributes, oid); }
|
||||
}
|
||||
|
||||
public IEnumerable<DerObjectIdentifier> BagAttributeKeys
|
||||
{
|
||||
get { return CollectionUtilities.Proxy(m_attributes.Keys); }
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user