Class: Sigstore::Internal::X509::Extension::KeyUsage

Inherits:
Sigstore::Internal::X509::Extension show all
Defined in:
lib/sigstore/internal/x509.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Sigstore::Internal::X509::Extension

#critical?, #initialize, #shift_bitstring, #shift_value

Constructor Details

This class inherits a constructor from Sigstore::Internal::X509::Extension

Instance Attribute Details

#crl_signObject (readonly)

Returns the value of attribute crl_sign.



222
223
224
# File 'lib/sigstore/internal/x509.rb', line 222

def crl_sign
  @crl_sign
end

#data_enciphermentObject (readonly)

Returns the value of attribute data_encipherment.



222
223
224
# File 'lib/sigstore/internal/x509.rb', line 222

def data_encipherment
  @data_encipherment
end

#decipher_onlyObject (readonly)

Returns the value of attribute decipher_only.



222
223
224
# File 'lib/sigstore/internal/x509.rb', line 222

def decipher_only
  @decipher_only
end

#digital_signatureObject (readonly)

Returns the value of attribute digital_signature.



222
223
224
# File 'lib/sigstore/internal/x509.rb', line 222

def digital_signature
  @digital_signature
end

#encipher_onlyObject (readonly)

Returns the value of attribute encipher_only.



222
223
224
# File 'lib/sigstore/internal/x509.rb', line 222

def encipher_only
  @encipher_only
end

#key_agreementObject (readonly)

Returns the value of attribute key_agreement.



222
223
224
# File 'lib/sigstore/internal/x509.rb', line 222

def key_agreement
  @key_agreement
end

#key_cert_signObject (readonly)

Returns the value of attribute key_cert_sign.



222
223
224
# File 'lib/sigstore/internal/x509.rb', line 222

def key_cert_sign
  @key_cert_sign
end

#key_enciphermentObject (readonly)

Returns the value of attribute key_encipherment.



222
223
224
# File 'lib/sigstore/internal/x509.rb', line 222

def key_encipherment
  @key_encipherment
end

#non_repudiationObject (readonly)

Returns the value of attribute non_repudiation.



222
223
224
# File 'lib/sigstore/internal/x509.rb', line 222

def non_repudiation
  @non_repudiation
end

Instance Method Details

#parse_value(value) ⇒ Object



225
226
227
228
229
# File 'lib/sigstore/internal/x509.rb', line 225

def parse_value(value)
  @digital_signature, @non_repudiation, @key_encipherment, @data_encipherment, @key_agreement, @key_cert_sign,
  @crl_sign, @encipher_only, @decipher_only =
    shift_bitstring(value)
end