init(_:critical:)
Construct an opaque Extension
from this Subject Key Identifier extension.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
init(_ ski: SubjectKeyIdentifier, critical: Bool) throws
Construct an opaque Extension
from this Subject Key Identifier extension.
init(_ ski: SubjectKeyIdentifier, critical: Bool) throws
s4X50911CertificateV9ExtensionV_8criticalAeA20SubjectKeyIdentifierV_SbtKcfc
What are these?2OAIX
import X509
A library for working with X.509 certificates.
struct Extension
A general-purpose representation of a specific X.509 extension.
struct Certificate
struct SubjectKeyIdentifier
Provides a means of identifying a certificate that contains a particular public key.
@frozen struct Bool
A value type whose instances are either true
or false
.
init(_ nameConstraints: NameConstraints, critical: Bool) throws
Construct an opaque Extension
from this Name Constraints extension.
init(_ basicConstraints: BasicConstraints, critical: Bool) throws
Construct an opaque Extension
from this Basic Constraints extension.
init(_ eku: ExtendedKeyUsage, critical: Bool) throws
Construct an opaque Extension
from this Extended Key Usage extension.
init(_ aki: AuthorityKeyIdentifier, critical: Bool) throws
Construct an opaque Extension
from this AKI extension.
init(_ san: SubjectAlternativeNames, critical: Bool) throws
Construct an opaque Extension
from this Subject Alternative Name extension.
init(_ aia: AuthorityInformationAccess, critical: Bool) throws
Construct an opaque Extension
from this AIA extension.
init(_ keyUsage: KeyUsage, critical: Bool) throws
Construct an opaque Extension
from this Key Usage extension.
init(derEncoded rootNode: ASN1Node, withIdentifier identifier: ASN1Identifier) throws
init(oid: ASN1ObjectIdentifier, critical: Bool, value: ArraySlice<UInt8>)
Construct a new extension from its constituent parts.
static var defaultIdentifier: ASN1Identifier { get }
var critical: Bool
Whether this extension must be processed in order to trust the certificate.
var description: String { get }
var oid: ASN1ObjectIdentifier
The identifier for this extension type.
var value: ArraySlice<UInt8>
The encoded bytes of the value of this extension.
func makeCertificateExtension() -> Certificate.Extension
func serialize(into coder: inout DER.Serializer, withIdentifier identifier: ASN1Identifier) throws