Enumerationswift-certificates 1.13.0X509
VerificationError
CMSOperations.swift:459This declaration is gated by at least one @_spi attribute.
- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
enum VerificationErrorThis declaration is gated by at least one @_spi attribute.
enum VerificationErrorimport X509A library for working with X.509 certificates.
enum CMScase unableToValidateSigner(CMS.VerificationError.SignerValidationFailure)case invalidCMSBlock(CMS.VerificationError.InvalidCMSBlock)static func isValidAttachedSignature<SignatureBytes>(signatureBytes: SignatureBytes, additionalIntermediateCertificates: [Certificate] = [], trustRoots: CertificateStore, diagnosticCallback: ((VerificationDiagnostic) -> Void)? = nil, microsoftCompatible: Bool = false, @PolicyBuilder policy: () throws -> some VerifierPolicy) async rethrows -> CMS.SignatureVerificationResult where SignatureBytes : DataProtocol static func isValidSignature<DataBytes, SignatureBytes>(dataBytes: DataBytes, signatureBytes: SignatureBytes, additionalIntermediateCertificates: [Certificate] = [], trustRoots: CertificateStore, diagnosticCallback: ((VerificationDiagnostic) -> Void)? = nil, microsoftCompatible: Bool = false, allowAttachedContent: Bool = false, @PolicyBuilder policy: () throws -> some VerifierPolicy) async rethrows -> CMS.SignatureVerificationResult where DataBytes : DataProtocol, SignatureBytes : DataProtocol static func sign<Bytes>(_ bytes: Bytes, additionalIntermediateCertificates: [Certificate] = [], certificate: Certificate, privateKey: Certificate.PrivateKey, signingTime: Date? = nil, detached: Bool = true) throws -> [UInt8] where Bytes : DataProtocol static func sign<Bytes>(_ bytes: Bytes, signatureAlgorithm: Certificate.SignatureAlgorithm, additionalIntermediateCertificates: [Certificate] = [], certificate: Certificate, privateKey: Certificate.PrivateKey, signingTime: Date? = nil, detached: Bool = true) throws -> [UInt8] where Bytes : DataProtocol static func sign(signatureBytes: ASN1OctetString, signatureAlgorithm: Certificate.SignatureAlgorithm, additionalIntermediateCertificates: [Certificate] = [], certificate: Certificate) throws -> [UInt8] enum Errorstruct Validtypealias SignatureVerificationResult = Result<CMS.Valid, CMS.VerificationError>protocol EquatableA type that can be compared for value equality.
protocol Error : SendableA type representing an error value that can be thrown.
protocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
struct InvalidCMSBlockstruct SignerValidationFailurevar localizedDescription: String { get }Retrieve the localized description for this error.
static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.