Class: Pdfrb::DigitalSignature::VerificationResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/pdfrb/digital_signature/verification_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#byte_range_ok?Object

Returns the value of attribute byte_range_ok?

Returns:

  • (Object)

    the current value of byte_range_ok?



5
6
7
# File 'lib/pdfrb/digital_signature/verification_result.rb', line 5

def byte_range_ok?
  @byte_range_ok?
end

#cert_chainObject

Returns the value of attribute cert_chain

Returns:

  • (Object)

    the current value of cert_chain



5
6
7
# File 'lib/pdfrb/digital_signature/verification_result.rb', line 5

def cert_chain
  @cert_chain
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



5
6
7
# File 'lib/pdfrb/digital_signature/verification_result.rb', line 5

def error
  @error
end

#signed_atObject

Returns the value of attribute signed_at

Returns:

  • (Object)

    the current value of signed_at



5
6
7
# File 'lib/pdfrb/digital_signature/verification_result.rb', line 5

def signed_at
  @signed_at
end

#signerObject

Returns the value of attribute signer

Returns:

  • (Object)

    the current value of signer



5
6
7
# File 'lib/pdfrb/digital_signature/verification_result.rb', line 5

def signer
  @signer
end

#trusted?Object

Returns the value of attribute trusted?

Returns:

  • (Object)

    the current value of trusted?



5
6
7
# File 'lib/pdfrb/digital_signature/verification_result.rb', line 5

def trusted?
  @trusted?
end

#valid?Object

Returns the value of attribute valid?

Returns:

  • (Object)

    the current value of valid?



5
6
7
# File 'lib/pdfrb/digital_signature/verification_result.rb', line 5

def valid?
  @valid?
end

Instance Method Details

#cert_countObject



11
# File 'lib/pdfrb/digital_signature/verification_result.rb', line 11

def cert_count; cert_chain&.length || 0; end

#has_error?Boolean

Returns:

  • (Boolean)


10
# File 'lib/pdfrb/digital_signature/verification_result.rb', line 10

def has_error?; !error.nil?; end