securityContext method
The current SecurityContext to bind the listener with.
Throws TlsException if certificates are not yet available (e.g. an ACME provider that has not completed provision).
Implementation
@override
SecurityContext securityContext() {
final context = _default;
if (context == null) {
throw const TlsException(
'TLS certificate not provisioned yet; call provision() first',
);
}
return context;
}