X509CredentialAcquisition
open class X509CredentialAcquisition : X509CredentialAcquisitionProtocol, @unchecked Sendable
X509 credential acquisition flow.
This allows acquiring a X509 credential for a CoreCrypto client.
-
Create a new credential acquisition
Declaration
Swift
public convenience init(pkiEnvironment: PkiEnvironment, config: X509CredentialAcquisitionConfiguration) throws -
Deserialize a credential acquisition flow.
Declaration
Swift
public static func fromBytes(pkiEnvironment: PkiEnvironment, bytes: Data) throws -> X509CredentialAcquisition -
finalize()AsynchronousComplete the DPoP and OIDC challenges and return the acquired X509 credential.
Declaration
Swift
open func finalize() async throws -> Credential -
newFromCredentialRef(pkiEnvironment:Asynchronous, from WireCoreCryptoconfig: credentialRef: coreCryptoDatabase: ) Create a new credential acquisition from an existing credential. This API is temporary until our system decouples client identities from a client’s public signature key. See https://wearezeta.atlassian.net/wiki/x/RABtrQ.
Provide
coreCryptoDatabaseif you’re using distinct DB instances forPkiEnvironmentandCoreCrypto. Otherwise, thePkiEnvironment‘s DB will be used to load the full credential.Declaration
Swift
public static func newFromCredentialRef( pkiEnvironment: PkiEnvironment, config: X509CredentialAcquisitionConfiguration, credentialRef: CredentialRef, coreCryptoDatabase: Database? = nil ) async throws -> X509CredentialAcquisition