Initializerswift-certificates 1.8.0X509
init(type:value:)
Create a new attribute from a given type and value.
init(type: ASN1ObjectIdentifier, value: Attribute.Value)
Create a new attribute from a given type and value.
init(type: ASN1ObjectIdentifier, value: Attribute.Value)
s4X50925RelativeDistinguishedNameV9AttributeV4type5valueAE9SwiftASN10I16ObjectIdentifierV_AE5ValueVtcfc
What are these?8H7HE
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 ASN1ObjectIdentifier
An Object Identifier is a representation of some kind of object.
struct Value
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: 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