serialize(into:withIdentifier:)
RDNAttribute.swift:247func serialize(into coder: inout DER.Serializer, withIdentifier identifier: ASN1Identifier) throws
func serialize(into coder: inout DER.Serializer, withIdentifier identifier: ASN1Identifier) throws
s4X50925RelativeDistinguishedNameV9AttributeV9serialize4into14withIdentifiery9SwiftASN13DERO10SerializerVz_AI0kI0VtKF
What are these?5SJSU
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
.
enum DER
DER
defines a namespace that is used to store a number of helper methods and types for DER encoding and decoding.
struct Serializer
An object that can serialize ASN.1 bytes.
struct ASN1Identifier
An ASN1Identifier
is a representation of the abstract notion of an ASN.1 identifier.
init(derEncoded rootNode: ASN1Node, withIdentifier identifier: ASN1Identifier) throws
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.
struct Value