Class: Sigstore::Internal::X509::Extension::SubjectKeyIdentifier

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

#key_identifierObject (readonly)

Returns the value of attribute key_identifier.



205
206
207
# File 'lib/sigstore/internal/x509.rb', line 205

def key_identifier
  @key_identifier
end

Instance Method Details

#parse_value(value) ⇒ Object



209
210
211
212
213
214
215
216
# File 'lib/sigstore/internal/x509.rb', line 209

def parse_value(value)
  unless value.is_a?(OpenSSL::ASN1::OctetString)
    raise ArgumentError,
          "Invalid key identifier: #{value.inspect}"
  end

  @key_identifier = value.value
end