TlsProvider class abstract interface

Supplies TLS material to an HTTPS/WSS Transport, and (for ACME providers) the challenge middleware and provisioning/renewal hooks.

Static certificate files use StaticTls; automatic Let's Encrypt provisioning uses LetsEncryptTls. Keeping this behind a port means the transport never depends on the ACME implementation.

Properties

challengeMiddleware Middleware?
A middleware that answers ACME HTTP-01 challenges, mounted first in the pipeline of the plaintext transport. null for providers that need no challenge handling (e.g. StaticTls).
no setter
hashCode int
The hash code for this object.
no setterinherited
hotReloadable bool
Whether the securityContext may change at runtime (ACME renewal), in which case the hub rebinds the HTTPS transport after maybeRenew reports a refresh.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

maybeRenew() Future<bool>
Renews certificates if they are near expiry. Returns true if the securityContext changed and the listener should be rebound. A no-op (returning false) for static providers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
provision() Future<void>
Ensures certificates exist, provisioning them if necessary. A no-op for static providers.
securityContext() SecurityContext
The current SecurityContext to bind the listener with.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited