Class: Nl::Linux::Ovpn::AttributeSets::Keydir

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

Defined Under Namespace

Classes: Attribute, CipherKey, NonceTail

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#cipher_key ⇒ String

The actual key to be used by the cipher

Returns:

  • (String)

See Also:



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

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

#nonce_tail ⇒ String

Random nonce to be concatenated to the packet ID, in order to obtain the actual cipher IV

Returns:

  • (String)

See Also:



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

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