| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.NM.Objects.SettingMacsec
Description
MACSec Settings
Synopsis
- newtype SettingMacsec = SettingMacsec (ManagedPtr SettingMacsec)
- class (GObject o, IsDescendantOf SettingMacsec o) => IsSettingMacsec o
- toSettingMacsec :: (MonadIO m, IsSettingMacsec o) => o -> m SettingMacsec
- settingMacsecGetEncrypt :: (HasCallStack, MonadIO m, IsSettingMacsec a) => a -> m Bool
- settingMacsecGetMkaCak :: (HasCallStack, MonadIO m, IsSettingMacsec a) => a -> m Text
- settingMacsecGetMkaCakFlags :: (HasCallStack, MonadIO m, IsSettingMacsec a) => a -> m [SettingSecretFlags]
- settingMacsecGetMkaCkn :: (HasCallStack, MonadIO m, IsSettingMacsec a) => a -> m Text
- settingMacsecGetMode :: (HasCallStack, MonadIO m, IsSettingMacsec a) => a -> m SettingMacsecMode
- settingMacsecGetOffload :: (HasCallStack, MonadIO m, IsSettingMacsec a) => a -> m SettingMacsecOffload
- settingMacsecGetParent :: (HasCallStack, MonadIO m, IsSettingMacsec a) => a -> m Text
- settingMacsecGetPort :: (HasCallStack, MonadIO m, IsSettingMacsec a) => a -> m Int32
- settingMacsecGetSendSci :: (HasCallStack, MonadIO m, IsSettingMacsec a) => a -> m Bool
- settingMacsecGetValidation :: (HasCallStack, MonadIO m, IsSettingMacsec a) => a -> m SettingMacsecValidation
- settingMacsecNew :: (HasCallStack, MonadIO m) => m SettingMacsec
- constructSettingMacsecEncrypt :: (IsSettingMacsec o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSettingMacsecEncrypt :: (MonadIO m, IsSettingMacsec o) => o -> m Bool
- setSettingMacsecEncrypt :: (MonadIO m, IsSettingMacsec o) => o -> Bool -> m ()
- clearSettingMacsecMkaCak :: (MonadIO m, IsSettingMacsec o) => o -> m ()
- constructSettingMacsecMkaCak :: (IsSettingMacsec o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingMacsecMkaCak :: (MonadIO m, IsSettingMacsec o) => o -> m Text
- setSettingMacsecMkaCak :: (MonadIO m, IsSettingMacsec o) => o -> Text -> m ()
- constructSettingMacsecMkaCakFlags :: (IsSettingMacsec o, MonadIO m) => [SettingSecretFlags] -> m (GValueConstruct o)
- getSettingMacsecMkaCakFlags :: (MonadIO m, IsSettingMacsec o) => o -> m [SettingSecretFlags]
- setSettingMacsecMkaCakFlags :: (MonadIO m, IsSettingMacsec o) => o -> [SettingSecretFlags] -> m ()
- clearSettingMacsecMkaCkn :: (MonadIO m, IsSettingMacsec o) => o -> m ()
- constructSettingMacsecMkaCkn :: (IsSettingMacsec o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingMacsecMkaCkn :: (MonadIO m, IsSettingMacsec o) => o -> m Text
- setSettingMacsecMkaCkn :: (MonadIO m, IsSettingMacsec o) => o -> Text -> m ()
- constructSettingMacsecMode :: (IsSettingMacsec o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingMacsecMode :: (MonadIO m, IsSettingMacsec o) => o -> m Int32
- setSettingMacsecMode :: (MonadIO m, IsSettingMacsec o) => o -> Int32 -> m ()
- constructSettingMacsecOffload :: (IsSettingMacsec o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingMacsecOffload :: (MonadIO m, IsSettingMacsec o) => o -> m Int32
- setSettingMacsecOffload :: (MonadIO m, IsSettingMacsec o) => o -> Int32 -> m ()
- clearSettingMacsecParent :: (MonadIO m, IsSettingMacsec o) => o -> m ()
- constructSettingMacsecParent :: (IsSettingMacsec o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingMacsecParent :: (MonadIO m, IsSettingMacsec o) => o -> m Text
- setSettingMacsecParent :: (MonadIO m, IsSettingMacsec o) => o -> Text -> m ()
- constructSettingMacsecPort :: (IsSettingMacsec o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingMacsecPort :: (MonadIO m, IsSettingMacsec o) => o -> m Int32
- setSettingMacsecPort :: (MonadIO m, IsSettingMacsec o) => o -> Int32 -> m ()
- constructSettingMacsecSendSci :: (IsSettingMacsec o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSettingMacsecSendSci :: (MonadIO m, IsSettingMacsec o) => o -> m Bool
- setSettingMacsecSendSci :: (MonadIO m, IsSettingMacsec o) => o -> Bool -> m ()
- constructSettingMacsecValidation :: (IsSettingMacsec o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingMacsecValidation :: (MonadIO m, IsSettingMacsec o) => o -> m Int32
- setSettingMacsecValidation :: (MonadIO m, IsSettingMacsec o) => o -> Int32 -> m ()
Exported types
newtype SettingMacsec Source #
Memory-managed wrapper type.
Constructors
| SettingMacsec (ManagedPtr SettingMacsec) |
Instances
| Eq SettingMacsec Source # | |
Defined in GI.NM.Objects.SettingMacsec Methods (==) :: SettingMacsec -> SettingMacsec -> Bool # (/=) :: SettingMacsec -> SettingMacsec -> Bool # | |
| GObject SettingMacsec Source # | |
Defined in GI.NM.Objects.SettingMacsec | |
| ManagedPtrNewtype SettingMacsec Source # | |
Defined in GI.NM.Objects.SettingMacsec Methods | |
| TypedObject SettingMacsec Source # | |
Defined in GI.NM.Objects.SettingMacsec | |
| HasParentTypes SettingMacsec Source # | |
Defined in GI.NM.Objects.SettingMacsec | |
| IsGValue (Maybe SettingMacsec) Source # | Convert |
Defined in GI.NM.Objects.SettingMacsec Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingMacsec -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingMacsec) # | |
| type ParentTypes SettingMacsec Source # | |
Defined in GI.NM.Objects.SettingMacsec | |
class (GObject o, IsDescendantOf SettingMacsec o) => IsSettingMacsec o Source #
Type class for types which can be safely cast to SettingMacsec, for instance with toSettingMacsec.
Instances
| (GObject o, IsDescendantOf SettingMacsec o) => IsSettingMacsec o Source # | |
Defined in GI.NM.Objects.SettingMacsec | |
toSettingMacsec :: (MonadIO m, IsSettingMacsec o) => o -> m SettingMacsec Source #
Cast to SettingMacsec, for types for which this is known to be safe. For general casts, use castTo.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getData, getDbusPropertyType, getEncrypt, getMkaCak, getMkaCakFlags, getMkaCkn, getMode, getName, getOffload, getParent, getPort, getProperty, getQdata, getSecretFlags, getSendSci, getValidation.
Setters
getEncrypt
settingMacsecGetEncrypt Source #
Arguments
| :: (HasCallStack, MonadIO m, IsSettingMacsec a) | |
| => a |
|
| -> m Bool | Returns: the SettingMacsec:encrypt property of the setting |
No description available in the introspection data.
Since: 1.6
getMkaCak
settingMacsecGetMkaCak Source #
Arguments
| :: (HasCallStack, MonadIO m, IsSettingMacsec a) | |
| => a |
|
| -> m Text | Returns: the SettingMacsec:mkaCak property of the setting |
No description available in the introspection data.
Since: 1.6
getMkaCakFlags
settingMacsecGetMkaCakFlags Source #
Arguments
| :: (HasCallStack, MonadIO m, IsSettingMacsec a) | |
| => a |
|
| -> m [SettingSecretFlags] | Returns: the |
No description available in the introspection data.
Since: 1.6
getMkaCkn
settingMacsecGetMkaCkn Source #
Arguments
| :: (HasCallStack, MonadIO m, IsSettingMacsec a) | |
| => a |
|
| -> m Text | Returns: the SettingMacsec:mkaCkn property of the setting |
No description available in the introspection data.
Since: 1.6
getMode
Arguments
| :: (HasCallStack, MonadIO m, IsSettingMacsec a) | |
| => a |
|
| -> m SettingMacsecMode | Returns: the SettingMacsec:mode property of the setting |
No description available in the introspection data.
Since: 1.6
getOffload
settingMacsecGetOffload Source #
Arguments
| :: (HasCallStack, MonadIO m, IsSettingMacsec a) | |
| => a |
|
| -> m SettingMacsecOffload | Returns: the SettingMacsec:offload property of the setting |
No description available in the introspection data.
Since: 1.46
getParent
settingMacsecGetParent Source #
Arguments
| :: (HasCallStack, MonadIO m, IsSettingMacsec a) | |
| => a |
|
| -> m Text | Returns: the SettingMacsec:parent property of the setting |
No description available in the introspection data.
Since: 1.6
getPort
Arguments
| :: (HasCallStack, MonadIO m, IsSettingMacsec a) | |
| => a |
|
| -> m Int32 | Returns: the SettingMacsec:port property of the setting |
No description available in the introspection data.
Since: 1.6
getSendSci
settingMacsecGetSendSci Source #
Arguments
| :: (HasCallStack, MonadIO m, IsSettingMacsec a) | |
| => a |
|
| -> m Bool | Returns: the SettingMacsec:sendSci property of the setting |
No description available in the introspection data.
Since: 1.12
getValidation
settingMacsecGetValidation Source #
Arguments
| :: (HasCallStack, MonadIO m, IsSettingMacsec a) | |
| => a |
|
| -> m SettingMacsecValidation | Returns: the SettingMacsec:validation property of the setting |
No description available in the introspection data.
Since: 1.6
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m SettingMacsec | Returns: the new empty |
Creates a new SettingMacsec object with default values.
Since: 1.6
Properties
encrypt
Whether the transmitted traffic must be encrypted.
Since: 1.6
constructSettingMacsecEncrypt :: (IsSettingMacsec o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “encrypt” property. This is rarely needed directly, but it is used by new.
getSettingMacsecEncrypt :: (MonadIO m, IsSettingMacsec o) => o -> m Bool Source #
Get the value of the “encrypt” property.
When overloading is enabled, this is equivalent to
get settingMacsec #encrypt
setSettingMacsecEncrypt :: (MonadIO m, IsSettingMacsec o) => o -> Bool -> m () Source #
Set the value of the “encrypt” property.
When overloading is enabled, this is equivalent to
setsettingMacsec [ #encrypt:=value ]
mkaCak
The pre-shared CAK (Connectivity Association Key) for MACsec Key Agreement. Must be a string of 32 hexadecimal characters.
Since: 1.6
clearSettingMacsecMkaCak :: (MonadIO m, IsSettingMacsec o) => o -> m () Source #
Set the value of the “mka-cak” property to Nothing.
When overloading is enabled, this is equivalent to
clear #mkaCak
constructSettingMacsecMkaCak :: (IsSettingMacsec o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “mka-cak” property. This is rarely needed directly, but it is used by new.
getSettingMacsecMkaCak :: (MonadIO m, IsSettingMacsec o) => o -> m Text Source #
Get the value of the “mka-cak” property.
When overloading is enabled, this is equivalent to
get settingMacsec #mkaCak
setSettingMacsecMkaCak :: (MonadIO m, IsSettingMacsec o) => o -> Text -> m () Source #
Set the value of the “mka-cak” property.
When overloading is enabled, this is equivalent to
setsettingMacsec [ #mkaCak:=value ]
mkaCakFlags
Flags indicating how to handle the SettingMacsec:mkaCak property.
Since: 1.6
constructSettingMacsecMkaCakFlags :: (IsSettingMacsec o, MonadIO m) => [SettingSecretFlags] -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “mka-cak-flags” property. This is rarely needed directly, but it is used by new.
getSettingMacsecMkaCakFlags :: (MonadIO m, IsSettingMacsec o) => o -> m [SettingSecretFlags] Source #
Get the value of the “mka-cak-flags” property.
When overloading is enabled, this is equivalent to
get settingMacsec #mkaCakFlags
setSettingMacsecMkaCakFlags :: (MonadIO m, IsSettingMacsec o) => o -> [SettingSecretFlags] -> m () Source #
Set the value of the “mka-cak-flags” property.
When overloading is enabled, this is equivalent to
setsettingMacsec [ #mkaCakFlags:=value ]
mkaCkn
The pre-shared CKN (Connectivity-association Key Name) for MACsec Key Agreement. Must be a string of hexadecimal characters with a even length between 2 and 64.
Since: 1.6
clearSettingMacsecMkaCkn :: (MonadIO m, IsSettingMacsec o) => o -> m () Source #
Set the value of the “mka-ckn” property to Nothing.
When overloading is enabled, this is equivalent to
clear #mkaCkn
constructSettingMacsecMkaCkn :: (IsSettingMacsec o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “mka-ckn” property. This is rarely needed directly, but it is used by new.
getSettingMacsecMkaCkn :: (MonadIO m, IsSettingMacsec o) => o -> m Text Source #
Get the value of the “mka-ckn” property.
When overloading is enabled, this is equivalent to
get settingMacsec #mkaCkn
setSettingMacsecMkaCkn :: (MonadIO m, IsSettingMacsec o) => o -> Text -> m () Source #
Set the value of the “mka-ckn” property.
When overloading is enabled, this is equivalent to
setsettingMacsec [ #mkaCkn:=value ]
mode
Specifies how the CAK (Connectivity Association Key) for MKA (MACsec Key Agreement) is obtained.
Since: 1.6
constructSettingMacsecMode :: (IsSettingMacsec o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “mode” property. This is rarely needed directly, but it is used by new.
getSettingMacsecMode :: (MonadIO m, IsSettingMacsec o) => o -> m Int32 Source #
Get the value of the “mode” property.
When overloading is enabled, this is equivalent to
get settingMacsec #mode
setSettingMacsecMode :: (MonadIO m, IsSettingMacsec o) => o -> Int32 -> m () Source #
Set the value of the “mode” property.
When overloading is enabled, this is equivalent to
setsettingMacsec [ #mode:=value ]
offload
Specifies the MACsec offload mode.
SettingMacsecOffloadOff disables MACsec offload.
SettingMacsecOffloadPhy and SettingMacsecOffloadMac request offload
respectively to the PHY or to the MAC; if the selected mode is not available, the
connection will fail.
SettingMacsecOffloadDefault uses the global default value specified in
NetworkManager configuration; if no global default is defined, the built-in
default is SettingMacsecOffloadOff.
Since: 1.46
constructSettingMacsecOffload :: (IsSettingMacsec o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “offload” property. This is rarely needed directly, but it is used by new.
getSettingMacsecOffload :: (MonadIO m, IsSettingMacsec o) => o -> m Int32 Source #
Get the value of the “offload” property.
When overloading is enabled, this is equivalent to
get settingMacsec #offload
setSettingMacsecOffload :: (MonadIO m, IsSettingMacsec o) => o -> Int32 -> m () Source #
Set the value of the “offload” property.
When overloading is enabled, this is equivalent to
setsettingMacsec [ #offload:=value ]
parent
If given, specifies the parent interface name or parent connection UUID
from which this MACSEC interface should be created. If this property is
not specified, the connection must contain an SettingWired setting
with a SettingWired:macAddress property.
Since: 1.6
clearSettingMacsecParent :: (MonadIO m, IsSettingMacsec o) => o -> m () Source #
Set the value of the “parent” property to Nothing.
When overloading is enabled, this is equivalent to
clear #parent
constructSettingMacsecParent :: (IsSettingMacsec o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “parent” property. This is rarely needed directly, but it is used by new.
getSettingMacsecParent :: (MonadIO m, IsSettingMacsec o) => o -> m Text Source #
Get the value of the “parent” property.
When overloading is enabled, this is equivalent to
get settingMacsec #parent
setSettingMacsecParent :: (MonadIO m, IsSettingMacsec o) => o -> Text -> m () Source #
Set the value of the “parent” property.
When overloading is enabled, this is equivalent to
setsettingMacsec [ #parent:=value ]
port
The port component of the SCI (Secure Channel Identifier), between 1 and 65534.
Since: 1.6
constructSettingMacsecPort :: (IsSettingMacsec o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “port” property. This is rarely needed directly, but it is used by new.
getSettingMacsecPort :: (MonadIO m, IsSettingMacsec o) => o -> m Int32 Source #
Get the value of the “port” property.
When overloading is enabled, this is equivalent to
get settingMacsec #port
setSettingMacsecPort :: (MonadIO m, IsSettingMacsec o) => o -> Int32 -> m () Source #
Set the value of the “port” property.
When overloading is enabled, this is equivalent to
setsettingMacsec [ #port:=value ]
sendSci
Specifies whether the SCI (Secure Channel Identifier) is included in every packet.
Since: 1.12
constructSettingMacsecSendSci :: (IsSettingMacsec o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “send-sci” property. This is rarely needed directly, but it is used by new.
getSettingMacsecSendSci :: (MonadIO m, IsSettingMacsec o) => o -> m Bool Source #
Get the value of the “send-sci” property.
When overloading is enabled, this is equivalent to
get settingMacsec #sendSci
setSettingMacsecSendSci :: (MonadIO m, IsSettingMacsec o) => o -> Bool -> m () Source #
Set the value of the “send-sci” property.
When overloading is enabled, this is equivalent to
setsettingMacsec [ #sendSci:=value ]
validation
Specifies the validation mode for incoming frames.
Since: 1.6
constructSettingMacsecValidation :: (IsSettingMacsec o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “validation” property. This is rarely needed directly, but it is used by new.
getSettingMacsecValidation :: (MonadIO m, IsSettingMacsec o) => o -> m Int32 Source #
Get the value of the “validation” property.
When overloading is enabled, this is equivalent to
get settingMacsec #validation
setSettingMacsecValidation :: (MonadIO m, IsSettingMacsec o) => o -> Int32 -> m () Source #
Set the value of the “validation” property.
When overloading is enabled, this is equivalent to
setsettingMacsec [ #validation:=value ]