Instance Propertyswift-certificates 1.8.0X509
description
Error.swift:51var description: String { get }
var description: String { get }
import X509
A library for working with X.509 certificates.
struct CertificateError
Represents an error that may be thrown from the Certificate
module.
@frozen struct String
A Unicode string value that is a collection of characters.
static func duplicateOID(reason: String, file: String = #fileID, line: UInt = #line) -> CertificateError
An OID is present twice.
static func failedToLoadSystemTrustStore(reason: String, file: String = #fileID, line: UInt = #line) -> CertificateError
The system trust store could not be found or failed to load from disk.
static func incorrectOIDForAttribute(reason: String, file: String = #fileID, line: UInt = #line) -> CertificateError
A CSR attribute has the wrong OID.
static func incorrectOIDForExtension(reason: String, file: String = #fileID, line: UInt = #line) -> CertificateError
An extension has the wrong OID.
static func invalidCSRAttribute(reason: String, file: String = #fileID, line: UInt = #line) -> CertificateError
A CSR attribute is invalid.
static func invalidSignatureForCertificate(reason: String, file: String = #fileID, line: UInt = #line) -> CertificateError
The signature was not valid for the provided Certificate
.
static func unsupportedDigestAlgorithm(reason: String, file: String = #fileID, line: UInt = #line) -> CertificateError
A digest algorithm isn’t supported
static func unsupportedPrivateKey(reason: String, file: String = #fileID, line: UInt = #line) -> CertificateError
A digest private key isn’t supported
static func unsupportedPublicKeyAlgorithm(reason: String, file: String = #fileID, line: UInt = #line) -> CertificateError
The private key algorithm used in a Certificate
is not supported by this library.
static func unsupportedSignatureAlgorithm(reason: String, file: String = #fileID, line: UInt = #line) -> CertificateError
The signature algorithm used in a Certificate
is not supported by this library.
var code: ErrorCode { get set }
Represents the kind of error that was encountered.
struct ErrorCode
Represents the kind of an error.