gi-gio
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Interfaces.TlsServerConnection

Description

GTlsServerConnection is the server-side subclass of TlsConnection, representing a server-side TLS connection.

Since: 2.28

Synopsis

Exported types

newtype TlsServerConnection Source #

Memory-managed wrapper type.

Instances

Instances details
Eq TlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

GObject TlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

ManagedPtrNewtype TlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

TypedObject TlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

Methods

glibType :: IO GType #

HasParentTypes TlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

HasAttributeList TlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

(info ~ ResolveTlsServerConnectionMethod t TlsServerConnection, OverloadedMethod info TlsServerConnection p, HasField t TlsServerConnection p) => HasField (t :: Symbol) TlsServerConnection (p :: Type) Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

(info ~ ResolveTlsServerConnectionMethod t TlsServerConnection, OverloadedMethodInfo info TlsServerConnection) => IsLabel t (MethodProxy info TlsServerConnection) Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

(info ~ ResolveTlsServerConnectionMethod t TlsServerConnection, OverloadedMethod info TlsServerConnection p) => IsLabel t (TlsServerConnection -> p) Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

IsGValue (Maybe TlsServerConnection) Source #

Convert TlsServerConnection to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttributeList TlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type ParentTypes TlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type SignalList TlsServerConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

class (GObject o, IsDescendantOf TlsServerConnection o) => IsTlsServerConnection o Source #

Type class for types which can be safely cast to TlsServerConnection, for instance with toTlsServerConnection.

Instances

Instances details
(GObject o, IsDescendantOf TlsServerConnection o) => IsTlsServerConnection o Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

toTlsServerConnection :: (MonadIO m, IsTlsServerConnection o) => o -> m TlsServerConnection Source #

Cast to TlsServerConnection, for types for which this is known to be safe. For general casts, use castTo.

Methods

type family ResolveTlsServerConnectionMethod (t :: Symbol) o where ... Source #

Equations

ResolveTlsServerConnectionMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveTlsServerConnectionMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveTlsServerConnectionMethod "clearPending" o = IOStreamClearPendingMethodInfo 
ResolveTlsServerConnectionMethod "close" o = IOStreamCloseMethodInfo 
ResolveTlsServerConnectionMethod "closeAsync" o = IOStreamCloseAsyncMethodInfo 
ResolveTlsServerConnectionMethod "closeFinish" o = IOStreamCloseFinishMethodInfo 
ResolveTlsServerConnectionMethod "emitAcceptCertificate" o = TlsConnectionEmitAcceptCertificateMethodInfo 
ResolveTlsServerConnectionMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveTlsServerConnectionMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveTlsServerConnectionMethod "getv" o = ObjectGetvMethodInfo 
ResolveTlsServerConnectionMethod "handshake" o = TlsConnectionHandshakeMethodInfo 
ResolveTlsServerConnectionMethod "handshakeAsync" o = TlsConnectionHandshakeAsyncMethodInfo 
ResolveTlsServerConnectionMethod "handshakeFinish" o = TlsConnectionHandshakeFinishMethodInfo 
ResolveTlsServerConnectionMethod "hasPending" o = IOStreamHasPendingMethodInfo 
ResolveTlsServerConnectionMethod "isClosed" o = IOStreamIsClosedMethodInfo 
ResolveTlsServerConnectionMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveTlsServerConnectionMethod "notify" o = ObjectNotifyMethodInfo 
ResolveTlsServerConnectionMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveTlsServerConnectionMethod "ref" o = ObjectRefMethodInfo 
ResolveTlsServerConnectionMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveTlsServerConnectionMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveTlsServerConnectionMethod "spliceAsync" o = IOStreamSpliceAsyncMethodInfo 
ResolveTlsServerConnectionMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveTlsServerConnectionMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveTlsServerConnectionMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveTlsServerConnectionMethod "unref" o = ObjectUnrefMethodInfo 
ResolveTlsServerConnectionMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveTlsServerConnectionMethod "getCertificate" o = TlsConnectionGetCertificateMethodInfo 
ResolveTlsServerConnectionMethod "getChannelBindingData" o = TlsConnectionGetChannelBindingDataMethodInfo 
ResolveTlsServerConnectionMethod "getCiphersuiteName" o = TlsConnectionGetCiphersuiteNameMethodInfo 
ResolveTlsServerConnectionMethod "getData" o = ObjectGetDataMethodInfo 
ResolveTlsServerConnectionMethod "getDatabase" o = TlsConnectionGetDatabaseMethodInfo 
ResolveTlsServerConnectionMethod "getInputStream" o = IOStreamGetInputStreamMethodInfo 
ResolveTlsServerConnectionMethod "getInteraction" o = TlsConnectionGetInteractionMethodInfo 
ResolveTlsServerConnectionMethod "getNegotiatedProtocol" o = TlsConnectionGetNegotiatedProtocolMethodInfo 
ResolveTlsServerConnectionMethod "getOutputStream" o = IOStreamGetOutputStreamMethodInfo 
ResolveTlsServerConnectionMethod "getPeerCertificate" o = TlsConnectionGetPeerCertificateMethodInfo 
ResolveTlsServerConnectionMethod "getPeerCertificateErrors" o = TlsConnectionGetPeerCertificateErrorsMethodInfo 
ResolveTlsServerConnectionMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveTlsServerConnectionMethod "getProtocolVersion" o = TlsConnectionGetProtocolVersionMethodInfo 
ResolveTlsServerConnectionMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveTlsServerConnectionMethod "getRehandshakeMode" o = TlsConnectionGetRehandshakeModeMethodInfo 
ResolveTlsServerConnectionMethod "getRequireCloseNotify" o = TlsConnectionGetRequireCloseNotifyMethodInfo 
ResolveTlsServerConnectionMethod "getUseSystemCertdb" o = TlsConnectionGetUseSystemCertdbMethodInfo 
ResolveTlsServerConnectionMethod "setAdvertisedProtocols" o = TlsConnectionSetAdvertisedProtocolsMethodInfo 
ResolveTlsServerConnectionMethod "setCertificate" o = TlsConnectionSetCertificateMethodInfo 
ResolveTlsServerConnectionMethod "setData" o = ObjectSetDataMethodInfo 
ResolveTlsServerConnectionMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveTlsServerConnectionMethod "setDatabase" o = TlsConnectionSetDatabaseMethodInfo 
ResolveTlsServerConnectionMethod "setInteraction" o = TlsConnectionSetInteractionMethodInfo 
ResolveTlsServerConnectionMethod "setPending" o = IOStreamSetPendingMethodInfo 
ResolveTlsServerConnectionMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveTlsServerConnectionMethod "setRehandshakeMode" o = TlsConnectionSetRehandshakeModeMethodInfo 
ResolveTlsServerConnectionMethod "setRequireCloseNotify" o = TlsConnectionSetRequireCloseNotifyMethodInfo 
ResolveTlsServerConnectionMethod "setUseSystemCertdb" o = TlsConnectionSetUseSystemCertdbMethodInfo 
ResolveTlsServerConnectionMethod l o = MethodResolutionFailed l o :: Type 

new

tlsServerConnectionNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsIOStream a, IsTlsCertificate b) 
=> a

baseIoStream: the IOStream to wrap

-> Maybe b

certificate: the default server certificate, or Nothing

-> m TlsServerConnection

Returns: the new TlsServerConnection, or Nothing on error (Can throw GError)

Creates a new TlsServerConnection wrapping baseIoStream (which must have pollable input and output streams).

See the documentation for TlsConnection:baseIoStream for restrictions on when application code can run operations on the baseIoStream after this function has returned.

Since: 2.28

Properties

authenticationMode

The TlsAuthenticationMode for the server. This can be changed before calling tlsConnectionHandshake if you want to rehandshake with a different mode from the initial handshake.

Since: 2.28

data TlsServerConnectionAuthenticationModePropertyInfo Source #

Instances

Instances details
AttrInfo TlsServerConnectionAuthenticationModePropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

Associated Types

type AttrAllowedOps TlsServerConnectionAuthenticationModePropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrBaseTypeConstraint TlsServerConnectionAuthenticationModePropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrGetType TlsServerConnectionAuthenticationModePropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrSetTypeConstraint TlsServerConnectionAuthenticationModePropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrTransferTypeConstraint TlsServerConnectionAuthenticationModePropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrTransferType TlsServerConnectionAuthenticationModePropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrLabel TlsServerConnectionAuthenticationModePropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrOrigin TlsServerConnectionAuthenticationModePropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrAllowedOps TlsServerConnectionAuthenticationModePropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrBaseTypeConstraint TlsServerConnectionAuthenticationModePropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrGetType TlsServerConnectionAuthenticationModePropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrLabel TlsServerConnectionAuthenticationModePropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrOrigin TlsServerConnectionAuthenticationModePropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrSetTypeConstraint TlsServerConnectionAuthenticationModePropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrTransferType TlsServerConnectionAuthenticationModePropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

type AttrTransferTypeConstraint TlsServerConnectionAuthenticationModePropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsServerConnection

constructTlsServerConnectionAuthenticationMode :: (IsTlsServerConnection o, MonadIO m) => TlsAuthenticationMode -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “authentication-mode” property. This is rarely needed directly, but it is used by new.

getTlsServerConnectionAuthenticationMode :: (MonadIO m, IsTlsServerConnection o) => o -> m TlsAuthenticationMode Source #

Get the value of the “authentication-mode” property. When overloading is enabled, this is equivalent to

get tlsServerConnection #authenticationMode

setTlsServerConnectionAuthenticationMode :: (MonadIO m, IsTlsServerConnection o) => o -> TlsAuthenticationMode -> m () Source #

Set the value of the “authentication-mode” property. When overloading is enabled, this is equivalent to

set tlsServerConnection [ #authenticationMode := value ]