| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gio.Interfaces.TlsServerConnection
Description
TlsServerConnection is the server-side subclass of TlsConnection,
representing a server-side TLS connection.
- newtype TlsServerConnection = TlsServerConnection (ManagedPtr TlsServerConnection)
- noTlsServerConnection :: Maybe TlsServerConnection
- class GObject o => IsTlsServerConnection o
- toTlsServerConnection :: (MonadIO m, IsTlsServerConnection o) => o -> m TlsServerConnection
- tlsServerConnectionNew :: (HasCallStack, MonadIO m, IsIOStream a, IsTlsCertificate b) => a -> Maybe b -> m TlsServerConnection
- constructTlsServerConnectionAuthenticationMode :: IsTlsServerConnection o => TlsAuthenticationMode -> IO (GValueConstruct o)
- getTlsServerConnectionAuthenticationMode :: (MonadIO m, IsTlsServerConnection o) => o -> m TlsAuthenticationMode
- setTlsServerConnectionAuthenticationMode :: (MonadIO m, IsTlsServerConnection o) => o -> TlsAuthenticationMode -> m ()
Exported types
newtype TlsServerConnection Source #
Constructors
| TlsServerConnection (ManagedPtr TlsServerConnection) |
class GObject o => IsTlsServerConnection o Source #
toTlsServerConnection :: (MonadIO m, IsTlsServerConnection o) => o -> m TlsServerConnection Source #
Methods
new
tlsServerConnectionNew Source #
Arguments
| :: (HasCallStack, MonadIO m, IsIOStream a, IsTlsCertificate b) | |
| => a |
|
| -> Maybe b |
|
| -> m TlsServerConnection | Returns: the new
|
Creates a new TlsServerConnection wrapping baseIoStream (which
must have pollable input and output streams).
See the documentation for TlsConnection:base-io-stream for restrictions
on when application code can run operations on the baseIoStream after
this function has returned.
Since: 2.28
Properties
authenticationMode
constructTlsServerConnectionAuthenticationMode :: IsTlsServerConnection o => TlsAuthenticationMode -> IO (GValueConstruct o) Source #
getTlsServerConnectionAuthenticationMode :: (MonadIO m, IsTlsServerConnection o) => o -> m TlsAuthenticationMode Source #
setTlsServerConnectionAuthenticationMode :: (MonadIO m, IsTlsServerConnection o) => o -> TlsAuthenticationMode -> m () Source #