using System; using System.Security.Cryptography; using System.Security.Cryptography.Pkcs; using System.Security.Cryptography.X509Certificates; namespace System.Security.Cryptography.Pkcs { /// Represents the PKCS#12 CertBag. This class cannot be inherited. public sealed class Pkcs12CertBag : Pkcs12SafeBag { /// Gets the uninterpreted certificate contents of the CertSafeBag. /// The uninterpreted certificate contents of the CertSafeBag. public ReadOnlyMemory EncodedCertificate { get { throw new PlatformNotSupportedException (); } } /// Gets a value indicating whether the content type of the encoded certificate value is the X.509 public key certificate content type. /// /// if the content type is the X.509 public key certificate content type (1.2.840.113549.1.9.22.1); otherwise, . public bool IsX509Certificate { get { throw new PlatformNotSupportedException (); } } /// Initializes a new instance of the class using the specified certificate type and encoding. /// The Object Identifier (OID) for the certificate type. /// The encoded certificate value. /// The parameter is . /// The parameter does not represent a single ASN.1 BER-encoded value. public Pkcs12CertBag (Oid certificateType, ReadOnlyMemory encodedCertificate) : base (null, default(ReadOnlyMemory)) { throw new PlatformNotSupportedException (); } /// Gets the contents of the CertBag interpreted as an X.509 public key certificate. /// A certificate decoded from the contents of the CertBag. /// The content type is not the X.509 public key certificate content type. /// The contents were not valid for the X.509 certificate content type. public X509Certificate2 GetCertificate () { throw new PlatformNotSupportedException (); } /// Gets the Object Identifier (OID) which identifies the content type of the encoded certificte value. /// The Object Identifier (OID) which identifies the content type of the encoded certificate value. public Oid GetCertificateType () { throw new PlatformNotSupportedException (); } } }