RotatingCredentialProvider
public final class RotatingCredentialProvider : CredentialProvider
extension RotatingCredentialProvider: CustomStringConvertible
Used for wrapping another credential provider whose getCredential
method returns an ExpiringCredential
.
If no credential is available, or the current credentials are going to expire in the near future the wrapped credential provider
getCredential
is called. If current credentials have not expired they are returned otherwise we wait on new
credentials being provided.
-
Declaration
Swift
public let provider: CredentialProvider
-
Declaration
Swift
public init(context: CredentialProviderFactory.Context, provider: CredentialProvider, remainingTokenLifetimeForUse: TimeInterval? = nil)
-
Shutdown credential provider
Declaration
Swift
public func shutdown(on eventLoop: EventLoop) -> EventLoopFuture<Void>
-
Declaration
Swift
public func getCredential(on eventLoop: EventLoop, logger: Logger) -> EventLoopFuture<Credential>
-
Declaration
Swift
public var description: String { get }