AsyncCredentialProvider

@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public protocol AsyncCredentialProvider : CredentialProvider

Async Protocol for providing credentials

  • Return credential

    Declaration

    Swift

    func getCredential(on eventLoop: EventLoop, logger: Logger) async throws -> Credential

    Parameters

    eventLoop

    EventLoop to run on

    logger

    Logger to use

  • getCredential(on:logger:) Extension method

    Declaration

    Swift

    public func getCredential(on eventLoop: EventLoop, logger: Logger) -> EventLoopFuture<Credential>