System::Security::Cryptography::X509Certificates::X509Extension 类

X509Extension class

用于保存与 X.509 证书关联的额外信息的扩展对象。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 new 运算符创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装到 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

class X509Extension : public System::Security::Cryptography::AsnEncodedData

方法

方法描述
CopyFrom(const SharedPtr<AsnEncodedData>&) override从其他对象复制扩展数据。
get_Critical() const检查扩展是否为关键的。
set_Critical(bool)定义扩展是否为关键的。
X509Extension(const SharedPtr<AsnEncodedData>&, bool)RTTI 信息。
X509Extension(const SharedPtr<Oid>&, const ByteArrayPtr&, bool)构造函数。
X509Extension(const String&, const ByteArrayPtr&, bool)构造函数。

另见