TlsOptions class final
The certificate and key files of a TLS (HTTPS) port.
Constructors
- TlsOptions({required String certificatePath, required String keyPath})
-
const
Properties
- certificatePath → String
-
A PEM file with the certificate first, then the intermediate
certificates (eg.
fullchain.pemof certbot).final - hashCode → int
-
The hash code for this object.
no setterinherited
- keyPath → String
-
A PEM file with the private key of the certificate (PKCS #8, PKCS #1
or SEC1), eg.
privkey.pemof certbot.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
check(
) → void -
Reads the two files as
NativeHttpServer.binddoes, and throws a TlsException when a file is bad or the key does not fit the certificate. It opens no port and changes no server. Use it to fail once at the start of an app, before the app starts its isolates. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited