requireSecureForPublicHosts

Returns url unchanged when its transport is acceptable, and throws IllegalArgumentException when it is plaintext http:// to a public host.

Parameters

url

the configured endpoint.

what

what travels over it, named in the error so the operator can weigh the risk (for example "RPC credentials and signed transactions").