Class: NETSNMP::Encryption::None
- Inherits:
-
Object
- Object
- NETSNMP::Encryption::None
- Defined in:
- lib/netsnmp/encryption/none.rb
Instance Method Summary collapse
- #decrypt(stream) ⇒ Object
- #encrypt(pdu) ⇒ Object
-
#initialize ⇒ None
constructor
A new instance of None.
Constructor Details
#initialize ⇒ None
Returns a new instance of None.
6 |
# File 'lib/netsnmp/encryption/none.rb', line 6 def initialize(*); end |
Instance Method Details
#decrypt(stream) ⇒ Object
12 13 14 |
# File 'lib/netsnmp/encryption/none.rb', line 12 def decrypt(stream, *) stream end |
#encrypt(pdu) ⇒ Object
8 9 10 |
# File 'lib/netsnmp/encryption/none.rb', line 8 def encrypt(pdu) pdu.send(:to_asn) end |