Exception: Moxml::Signature::ReferenceDigestMismatch

Inherits:
VerificationError show all
Defined in:
lib/moxml/signature/errors.rb

Instance Attribute Summary collapse

Attributes inherited from VerificationError

#signature_id

Instance Method Summary collapse

Constructor Details

#initialize(reference_uri:, expected:, computed:, signature_id: nil) ⇒ ReferenceDigestMismatch

Returns a new instance of ReferenceDigestMismatch.



50
51
52
53
54
55
56
57
58
# File 'lib/moxml/signature/errors.rb', line 50

def initialize(reference_uri:, expected:, computed:, signature_id: nil)
  @reference_uri = reference_uri
  @expected = expected
  @computed = computed
  super(
    "Digest mismatch for reference #{reference_uri.inspect}",
    signature_id: signature_id,
  )
end

Instance Attribute Details

#computedObject (readonly)

Returns the value of attribute computed.



48
49
50
# File 'lib/moxml/signature/errors.rb', line 48

def computed
  @computed
end

#expectedObject (readonly)

Returns the value of attribute expected.



48
49
50
# File 'lib/moxml/signature/errors.rb', line 48

def expected
  @expected
end

#reference_uriObject (readonly)

Returns the value of attribute reference_uri.



48
49
50
# File 'lib/moxml/signature/errors.rb', line 48

def reference_uri
  @reference_uri
end