- Initial commit
This commit is contained in:
49
Runtime/3rdParty/BouncyCastle/util/io/pem/PemObject.cs
vendored
Normal file
49
Runtime/3rdParty/BouncyCastle/util/io/pem/PemObject.cs
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
public class PemObject
|
||||
: PemObjectGenerator
|
||||
{
|
||||
private string type;
|
||||
private IList<PemHeader> headers;
|
||||
private byte[] content;
|
||||
|
||||
public PemObject(string type, byte[] content)
|
||||
: this(type, new List<PemHeader>(), content)
|
||||
{
|
||||
}
|
||||
|
||||
public PemObject(string type, IList<PemHeader> headers, byte[] content)
|
||||
{
|
||||
this.type = type;
|
||||
this.headers = new List<PemHeader>(headers);
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public string Type
|
||||
{
|
||||
get { return type; }
|
||||
}
|
||||
|
||||
public IList<PemHeader> Headers
|
||||
{
|
||||
get { return headers; }
|
||||
}
|
||||
|
||||
public byte[] Content
|
||||
{
|
||||
get { return content; }
|
||||
}
|
||||
|
||||
public PemObject Generate()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user