12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #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
|