BasicConstraints
Identifies whether the subject of the certificate is a CA and the maximum verification depth of valid certificate paths that include this certificate.
enum BasicConstraints
Identifies whether the subject of the certificate is a CA and the maximum verification depth of valid certificate paths that include this certificate.
enum BasicConstraints
import X509
A library for working with X.509 certificates.
case isCertificateAuthority(maxPathLength: Int?)
This entity is a certificate authority.
case notCertificateAuthority
This entity is not a certificate authority, and may not be a valid issuer of any certificate.
struct AuthorityInformationAccess
Provides details on how to access information about the certificate issuer.
struct AuthorityKeyIdentifier
Provides information about the public key corresponding to the private key that was used to sign a specific certificate.
struct ExtendedKeyUsage
Indicates one or more purposes for which the certified public key may be used, in addition to or instead of the the purposes indicated in the KeyUsage
extension.
struct KeyUsage
Defines the purpose of the key contained in the certificate.
struct NameConstraints
Constraints the namespace within which all subject names issued by a given CA must reside.
struct SubjectAlternativeNames
Allows identities to be bound to the subject of a certificate.
struct SubjectKeyIdentifier
Provides a means of identifying a certificate that contains a particular public key.
@frozen struct Critical<BaseExtension> where BaseExtension : CertificateExtensionConvertible
Marks a given CertificateExtensionConvertible
value as critical.
protocol CertificateExtensionConvertible
Conforming types are capable of being erased into Extension
values.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init(_ ext: Certificate.Extension) throws
Create a new BasicConstraints
object by unwrapping a Extension
.
var debugDescription: String { get }
var description: String { get }
func makeCertificateExtension() throws -> Certificate.Extension
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.