Initializerswift-certificates 1.8.0X509
init(derEncoded:withIdentifier:)
CSRAttribute.swift:105- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
init(derEncoded rootNode: ASN1Node, withIdentifier identifier: ASN1Identifier) throws
init(derEncoded rootNode: ASN1Node, withIdentifier identifier: ASN1Identifier) throws
s4X50925CertificateSigningRequestV9AttributeV10derEncoded14withIdentifierAE9SwiftASN10K4NodeV_AH0kI0VtKcfc
What are these?12DOJ
import X509
A library for working with X.509 certificates.
struct Attribute
A general-purpose representation of a CertificateSigningRequest
attribute.
struct CertificateSigningRequest
A representation of a PKCS#10 Certificate Signing Request (CSR).
struct ASN1Node
An ASN1Node
is a single entry in the ASN.1 representation of a data structure.
struct ASN1Identifier
An ASN1Identifier
is a representation of the abstract notion of an ASN.1 identifier.
init(_ extensionRequest: ExtensionRequest) throws
Wrap an ExtensionRequest
into a Attribute
.
init(oid: ASN1ObjectIdentifier, values: [ASN1Any])
Construct a new attribute from its constituent parts.
static var defaultIdentifier: ASN1Identifier { get }
var description: String { get }
var oid: ASN1ObjectIdentifier
The identifier for this attribute type.
var values: [ASN1Any]
The encoded bytes of the values of this attribute.
static func == (lhs: CertificateSigningRequest.Attribute, rhs: CertificateSigningRequest.Attribute) -> Bool
func hash(into hasher: inout Hasher)
func serialize(into coder: inout DER.Serializer, withIdentifier identifier: ASN1Identifier) throws