static MonoBtlsX509FileType GetFileType (BtlsX509Format format) { switch (format) { case BtlsX509Format.DER: return MonoBtlsX509FileType.ASN1; case BtlsX509Format.PEM: return MonoBtlsX509FileType.PEM; default: throw new NotSupportedException (); } }
static MonoBtlsX509FileType GetFileType(BtlsX509Format format) { switch (format) { case BtlsX509Format.DER: return(MonoBtlsX509FileType.ASN1); case BtlsX509Format.PEM: return(MonoBtlsX509FileType.PEM); default: throw new NotSupportedException(); } }
public byte[] GetRawData(BtlsX509Format format) { return(Instance.GetRawData((MonoBtlsX509Format)format)); }
public void AddDirectory(string dir, BtlsX509Format type) { Instance.AddDirectory(dir, (MonoBtlsX509FileType)type); }
public void LoadFile(string file, BtlsX509Format type) { Instance.LoadFile(file, (MonoBtlsX509FileType)type); }
public static X509Certificate2 CreateCertificate2 (byte[] data, BtlsX509Format format, bool disallowFallback = false) { return MonoBtlsProvider.CreateCertificate2 (data, (MonoBtlsX509Format)format, disallowFallback); }
public static BtlsX509 CreateNative (byte[] data, BtlsX509Format format) { var x509 = MonoBtlsX509.LoadFromData (data, (MonoBtlsX509Format)format); return new BtlsX509 (x509); }
public byte[] GetRawData (BtlsX509Format format) { return Instance.GetRawData ((MonoBtlsX509Format)format); }
public void LoadFile (string file, BtlsX509Format type) { Instance.LoadFile (file, (MonoBtlsX509FileType)type); }
public void AddFileLookup (string file, BtlsX509Format format) { Instance.AddFileLookup (file, GetFileType (format)); }
public void AddDirectoryLookup (string dir, BtlsX509Format format) { Instance.AddDirectoryLookup (dir, GetFileType (format)); }
public void AddFileLookup(string file, BtlsX509Format format) { Instance.AddFileLookup(file, GetFileType(format)); }
public void AddDirectoryLookup(string dir, BtlsX509Format format) { Instance.AddDirectoryLookup(dir, GetFileType(format)); }
public void AddDirectory (string dir, BtlsX509Format type) { Instance.AddDirectory (dir, (MonoBtlsX509FileType)type); }
public static BtlsX509 CreateNative(byte[] data, BtlsX509Format format) { var x509 = MonoBtlsX509.LoadFromData(data, (MonoBtlsX509Format)format); return(new BtlsX509(x509)); }
public BoringX509Host(byte[] data, BtlsX509Format format) { this.data = data; this.format = format; }
public static X509Certificate2 CreateCertificate2(byte[] data, BtlsX509Format format, bool disallowFallback = false) { return(MonoBtlsProvider.CreateCertificate(data, (MonoBtlsX509Format)format)); }
public BoringX509HostAttribute(CertificateResourceType type, BtlsX509Format format) : base(typeof(BoringX509HostAttribute)) { ResourceType = type; Format = format; }