SslSettings class final
The TLS (HTTPS) settings of the server, read from server.ssl.*.
The certificate and key are PEM files given by path, as Spring Boot's
server.ssl.certificate and server.ssl.certificate-private-key
(there are no keystores, SSL bundles or resources: locations).
Applications set the properties; this class is what
ServerProperties.ssl holds.
server.ssl.certificate=/etc/shop/cert.pem
server.ssl.certificate-private-key=/etc/shop/key.pem
Constructors
- SslSettings({required String certificate, required String privateKey, String? privateKeyPassword, String? trustCertificate, ClientAuth clientAuth = ClientAuth.none})
-
TLS with the PEM
certificatechain andprivateKeyfiles; no client certificate is asked for by default.const
Properties
- certificate → String
-
The path of the server's certificate chain, a PEM file
(
server.ssl.certificate).final - clientAuth → ClientAuth
-
Whether clients are asked for a certificate
(
server.ssl.client-auth); ClientAuth.none by default.final - hashCode → int
-
The hash code for this object.
no setterinherited
- privateKey → String
-
The path of the private key, a PEM file
(
server.ssl.certificate-private-key).final - privateKeyPassword → String?
-
The password of the private key when it is encrypted
(
server.ssl.key-password);nullfor a plain key.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trustCertificate → String?
-
The path of a PEM file with the certificates that client
certificates must be signed by (
server.ssl.trust-certificate); used with clientAuth.nulltrusts the system's certificates.final
Methods
-
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