Class: SASL::GssSecureLayer

Inherits:
SecureLayer show all
Defined in:
lib/sasl/gssapi.rb

Instance Attribute Summary

Attributes inherited from SecureLayer

#io

Instance Method Summary collapse

Methods inherited from SecureLayer

#close, #read, #write

Constructor Details

#initialize(io, ctx) ⇒ GssSecureLayer

Returns a new instance of GssSecureLayer.



78
79
80
81
# File 'lib/sasl/gssapi.rb', line 78

def initialize(io,ctx)
    super(io)
    @ctx=ctx
end

Instance Method Details

#unwrap(buf) ⇒ Object



87
88
89
# File 'lib/sasl/gssapi.rb', line 87

def unwrap(buf)
    @ctx.unwrap_message(buf)
end

#wrap(buf) ⇒ Object



83
84
85
# File 'lib/sasl/gssapi.rb', line 83

def wrap(buf)
    @ctx.wrap_message(buf)
end