SecurityContextMixin mixin

class MySecurityContext with SecurityContextMixin implements SecurityContext { 
  // Must override 
  @override 
  SecurityContext get securityContext;
  ...
}
Implemented types

Properties

allowLegacyUnsafeRenegotiation bool
If true, the SecurityContext will allow TLS renegotiation. Renegotiation is only supported as a client and the HelloRequest must be received at a quiet point in the application protocol. This is sufficient to support the legacy use case of requesting a new client certificate between an HTTP request and response in (unpipelined) HTTP/1.1. NOTE: Renegotiation is an extremely problematic protocol feature and should only be used to communicate with legacy servers in environments where it is known to be safe.
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
minimumTlsProtocolVersion TlsProtocolVersion
The minimum TLS version to use when establishing a secure connection.
getter/setter pairinherited
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
setAlpnProtocols(List<String> protocols, bool isServer) → void
Sets the list of application-level protocols supported by a client connection or server connection. The ALPN (application level protocol negotiation) extension to TLS allows a client to send a list of protocols in the TLS client hello message, and the server to pick one and send the selected one back in its server hello message.
override
setClientAuthorities(String file, {String? password}) → void
Sets the list of authority names that a SecureServerSocket will advertise as accepted when requesting a client certificate from a connecting client.
override
setClientAuthoritiesBytes(List<int> authCertBytes, {String? password}) → void
Sets the list of authority names that a SecureServerSocket will advertise as accepted, when requesting a client certificate from a connecting client.
override
setTrustedCertificates(String file, {String? password}) → void
Add a certificate to the set of trusted X509 certificates used by SecureSocket client connections.
override
setTrustedCertificatesBytes(List<int> certBytes, {String? password}) → void
Add a certificate to the set of trusted X509 certificates used by SecureSocket client connections.
override
toString() String
A string representation of this object.
inherited
useCertificateChain(String file, {String? password}) → void
Sets the chain of X509 certificates served by SecureServerSocket when making secure connections, including the server certificate.
override
useCertificateChainBytes(List<int> chainBytes, {String? password}) → void
Sets the chain of X509 certificates served by SecureServerSocket when making secure connections, including the server certificate.
override
usePrivateKey(String file, {String? password}) → void
Sets the private key for a server certificate or client certificate.
override
usePrivateKeyBytes(List<int> keyBytes, {String? password}) → void
Sets the private key for a server certificate or client certificate.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited