29 lines
820 B
C#
29 lines
820 B
C#
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
|
#pragma warning disable
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509
|
|
{
|
|
public interface IX509Extension
|
|
{
|
|
/// <summary>
|
|
/// Get all critical extension values, by oid
|
|
/// </summary>
|
|
/// <returns>IDictionary with string (OID) keys and Asn1OctetString values</returns>
|
|
ISet<string> GetCriticalExtensionOids();
|
|
|
|
/// <summary>
|
|
/// Get all non-critical extension values, by oid
|
|
/// </summary>
|
|
/// <returns>IDictionary with string (OID) keys and Asn1OctetString values</returns>
|
|
ISet<string> GetNonCriticalExtensionOids();
|
|
|
|
Asn1OctetString GetExtensionValue(DerObjectIdentifier oid);
|
|
}
|
|
}
|
|
#pragma warning restore
|
|
#endif
|