Initializerswift-certificates 1.8.0X509
init(derEncoded:withIdentifier:)
RDNAttribute.swift:238init(derEncoded rootNode: ASN1Node, withIdentifier identifier: ASN1Identifier) throws
init(derEncoded rootNode: ASN1Node, withIdentifier identifier: ASN1Identifier) throws
s4X50925RelativeDistinguishedNameV9AttributeV10derEncoded14withIdentifierAE9SwiftASN10K4NodeV_AH0kI0VtKcfc
What are these?5A4TP
import X509
A library for working with X.509 certificates.
struct Attribute
A single attribute of a RelativeDistinguishedName
.
struct RelativeDistinguishedName
A RelativeDistinguishedName
is a collection of elements at a single level of a hierarchical DistinguishedName
.
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(type: ASN1ObjectIdentifier, printableString: String) throws
A helper constructor to construct a Attribute
whose value is an ASN1PrintableString
.
init(type: ASN1ObjectIdentifier, utf8String: String)
A helper constructor to construct a Attribute
whose value is an ASN1UTF8String
.
init(type: ASN1ObjectIdentifier, value: Attribute.Value)
Create a new attribute from a given type and value.
init(type: ASN1ObjectIdentifier, value: ASN1Any)
Create a new attribute from a given type and value.
static var defaultIdentifier: ASN1Identifier { get }
var description: String { get }
var type: ASN1ObjectIdentifier
The type of this attribute.
var value: Attribute.Value
The value of this attribute.
func serialize(into coder: inout DER.Serializer, withIdentifier identifier: ASN1Identifier) throws
struct Value