CredentialProvider
public protocol CredentialProvider : CustomStringConvertible
Protocol providing future holding a credential
-
Return credential
Declaration
Swift
func getCredential(on eventLoop: EventLoop, logger: Logger) -> EventLoopFuture<Credential>
Parameters
eventLoop
EventLoop to run on
logger
Logger to use
-
shutdown(on:
Default implementation) Shutdown credential provider
Default Implementation
Declaration
Swift
func shutdown(on eventLoop: EventLoop) -> EventLoopFuture<Void>
Parameters
eventLoop
EventLoop to use when shutiting down
-
description
Extension methodDeclaration
Swift
public var description: String { get }