Class: Nl::Linux::Ovpn::AttributeSets::Keyconf

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/ovpn.rb

Defined Under Namespace

Classes: Attribute, CipherAlg, DecryptDir, EncryptDir, KeyId, PeerId, Slot

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



960
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 960

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



966
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 966

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#cipher_alg ⇒ Integer

The cipher to be used when communicating with the peer

Known enum values are defined in Enums::CipherAlg.

Returns:

  • (Integer)

See Also:



943
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 943

def cipher_alg; self[:"cipher_alg"]&.value; end

#decrypt_dir ⇒ AttributeSets::Keydir

Key material for decrypt direction

Returns:

See Also:



953
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 953

def decrypt_dir; self[:"decrypt_dir"]&.value; end

#encrypt_dir ⇒ AttributeSets::Keydir

Key material for encrypt direction

Returns:

See Also:



948
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 948

def encrypt_dir; self[:"encrypt_dir"]&.value; end

#key_id ⇒ Integer

The unique ID of the key in the peer context. Used to fetch the correct key upon decryption

Returns:

  • (Integer)

See Also:



936
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 936

def key_id; self[:"key_id"]&.value; end

#peer_id ⇒ Integer

The unique ID of the peer in the device context. To be used to identify peers during key operations

Returns:

  • (Integer)

See Also:



924
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 924

def peer_id; self[:"peer_id"]&.value; end

#slot ⇒ Integer

The slot where the key should be stored

Known enum values are defined in Enums::KeySlot.

Returns:

  • (Integer)

See Also:



931
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 931

def slot; self[:"slot"]&.value; end