vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/resource/TSIG.rb
#  Create the RR from a standard string
Create the RR from a standard string
Create the RR from a standard string
def from_string(str) 
        parts = str.split("[:/]")
        if (parts.length < 2 || parts.length > 3)
          raise ArgumentException.new("Invalid TSIG key specification")
        end
        if (parts.length == 3)
          return TSIG.new(parts[0], parts[1], parts[2]);
        else
          return TSIG.new(HMAC_MD5, parts[0], parts[1]);
        end
      end
def from_string ( str ) parts = str . split ( "[:/]" ) if ( parts . length < 2 || parts . length > 3 ) raise ArgumentException . new ( "Invalid TSIG key specification" ) end if ( parts . length == 3 ) return TSIG . new ( parts [ 0 ] , parts [ 1 ] , parts [ 2 ] ) ; else return TSIG . new ( HMAC_MD5 , parts [ 0 ] , parts [ 1 ] ) ; end end
Create the RR from a standard string
Create the RR from a standard string
#:nodoc: all
str
<not_specific>