ChannelCredentials class
Options controlling TLS security settings on a ClientChannel.
Constructors
- ChannelCredentials.insecure({String? authority})
-
Disable TLS. RPCs are sent in clear text.
const
-
ChannelCredentials.secure({List<
int> ? certificates, String? password, String? authority, BadCertificateHandler? onBadCertificate}) -
Enable TLS and optionally specify the
certificates
to trust. Ifcertificates
is not provided, the default trust store is used.const
Properties
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSecure → bool
-
final
- onBadCertificate → BadCertificateHandler?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- securityContext → SecurityContext?
-
no setter
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