RemoteAddressPolicy class final
Whether the addresses of the configuration may use insecure
connections: http://, and https:// with a certificate that is
expired, self-signed or for another host. Not by default: an insecure
address stops the start. With spring.remote.allow-insecure=true they
work, and a warning lists them.
spring:
remote:
allow-insecure: true # a theme server of the local network
A browser checks certificates by itself: on the web only http:// is
allowed this way.
Constructors
- RemoteAddressPolicy({bool allowInsecure = false})
-
A policy that allows insecure connections when
allowInsecure.const - RemoteAddressPolicy.of(PropertyResolver properties)
-
Reads property from
properties;falsewhen it is not set.factory
Properties
- allowInsecure → bool
-
Whether insecure connections are allowed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
check(
Iterable< RemoteAddress> addresses) → List<RemoteAddress> -
Checks
addresses: throws an InsecureConnectionException naming the insecure ones unless they are allowed; then logs a warning that lists them. Returns the insecure ones. -
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