Class: Sigstore::Internal::X509::Extension::FulcioIssuer

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

#issuerObject (readonly)

Returns the value of attribute issuer.



506
507
508
# File 'lib/sigstore/internal/x509.rb', line 506

def issuer
  @issuer
end

Instance Method Details

#parse_value(value) ⇒ Object



508
509
510
511
512
513
514
515
# File 'lib/sigstore/internal/x509.rb', line 508

def parse_value(value)
  unless value.is_a?(OpenSSL::ASN1::UTF8String)
    raise ArgumentError,
          "Invalid Fulcio issuer: #{value.inspect}"
  end

  @issuer = value.value
end