add all
This commit is contained in:
54
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/asn1/cmp/PKIConfirmContent.cs
vendored
Normal file
54
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/asn1/cmp/PKIConfirmContent.cs
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
|
||||
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
/**
|
||||
* PKIConfirmContent ::= NULL
|
||||
*/
|
||||
public class PkiConfirmContent
|
||||
: Asn1Encodable
|
||||
{
|
||||
public static PkiConfirmContent GetInstance(object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
|
||||
if (obj is PkiConfirmContent pkiConfirmContent)
|
||||
return pkiConfirmContent;
|
||||
|
||||
if (obj is Asn1Null asn1Null)
|
||||
return new PkiConfirmContent(asn1Null);
|
||||
|
||||
throw new ArgumentException("Invalid object: " + Org.BouncyCastle.Utilities.Platform.GetTypeName(obj), nameof(obj));
|
||||
}
|
||||
|
||||
private readonly Asn1Null m_val;
|
||||
|
||||
public PkiConfirmContent()
|
||||
: this(DerNull.Instance)
|
||||
{
|
||||
}
|
||||
|
||||
private PkiConfirmContent(Asn1Null val)
|
||||
{
|
||||
m_val = val;
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* PkiConfirmContent ::= NULL
|
||||
* </pre>
|
||||
* @return a basic ASN.1 object representation.
|
||||
*/
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return m_val;
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user