XtransportCredentials class

Options controlling TLS Ca security settings on a ClientChannel.

Constructors

XtransportCredentials.insecure({String? authority})
Disable TLS. RPCs are sent in clear text.
const
XtransportCredentials.secure({List<int>? certificates, String? password, String? authority, BadCertificateHandler? onBadCertificate, List<int>? clientCertificateBytes, String? clientCertificatePassword, List<int>? clientPrivateKeyBytes, String? clientPrivateKeyPassword})
Enable TLS and optionally specify the certificates to trust. If certificates is not provided, the default trust store is used.
const

Properties

authority String?
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

clone({bool? newIsSecure, String? newAuthority}) XtransportCredentials
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