vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/message/message.rb
#  Signs the message. If used with no arguments, then the message must have already
#  been set (set_tsig). Otherwise, the arguments can either be a Dnsruby::RR::TSIG
#  object, or a (name, key) tuple, or a hash which takes
#  Dnsruby::RR::TSIG attributes (e.g. name, key, fudge, etc.)
# 
#  NOTE that this method should only be called by the resolver, rather than the
#  client code. To use signing from the client, call Dnsruby::Resolver#tsig=
Signs the message. If used with no arguments, then the message must have already
been set (set_tsig).

NOTE that this method should only be called by the resolver, rather than the
client code. To use signing from the client, call Dnsruby::Resolver#tsig
Signs the message . If used with no arguments then the message must have already been set ( set_tsig ) . NOTE that this method should only be called by the resolver rather than the client code . To use signing from the client call Dnsruby :: Resolver#tsig
def sign!(*args) 
      if args.length > 0
        set_tsig(*args)
        sign!
      else
        if @tsigkey && (@tsigstate == :Unsigned)
          @tsigkey.apply(self)
        end
      end
    end
def sign! ( * args ) if args . length > 0 set_tsig ( * args ) sign! else if @tsigkey && ( @tsigstate == :Unsigned ) @tsigkey . apply ( self ) end end end
Signs the message.
Signs the message .
#:nodoc: all
args
<not_specific>