Class: DKIM::Signature

Inherits:
Object
  • Object
show all
Defined in:
lib/dkim.rb

Constant Summary collapse

PDKIM_VERIFY_NONE =
0
PDKIM_VERIFY_INVALID =
1
PDKIM_VERIFY_FAIL =
2
PDKIM_VERIFY_PASS =
3
PDKIM_VERIFY_FAIL_BODY =
1
PDKIM_VERIFY_FAIL_MESSAGE =
2
PDKIM_VERIFY_INVALID_PUBKEY_UNAVAILABLE =
3
PDKIM_VERIFY_INVALID_BUFFER_SIZE =
4
PDKIM_VERIFY_INVALID_PUBKEY_PARSING =
5

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#algoObject

Returns the value of attribute algo.



11
12
13
# File 'lib/dkim.rb', line 11

def algo
  @algo
end

#bodyhashObject

Returns the value of attribute bodyhash.



11
12
13
# File 'lib/dkim.rb', line 11

def bodyhash
  @bodyhash
end

#bodylengthObject

Returns the value of attribute bodylength.



11
12
13
# File 'lib/dkim.rb', line 11

def bodylength
  @bodylength
end

#canon_bodyObject

Returns the value of attribute canon_body.



11
12
13
# File 'lib/dkim.rb', line 11

def canon_body
  @canon_body
end

#canon_headersObject

Returns the value of attribute canon_headers.



11
12
13
# File 'lib/dkim.rb', line 11

def canon_headers
  @canon_headers
end

#copiedheadersObject

Returns the value of attribute copiedheaders.



11
12
13
# File 'lib/dkim.rb', line 11

def copiedheaders
  @copiedheaders
end

#createdObject

Returns the value of attribute created.



11
12
13
# File 'lib/dkim.rb', line 11

def created
  @created
end

#domainObject

Returns the value of attribute domain.



11
12
13
# File 'lib/dkim.rb', line 11

def domain
  @domain
end

#expiresObject

Returns the value of attribute expires.



11
12
13
# File 'lib/dkim.rb', line 11

def expires
  @expires
end

#headernamesObject

Returns the value of attribute headernames.



11
12
13
# File 'lib/dkim.rb', line 11

def headernames
  @headernames
end

#identityObject

Returns the value of attribute identity.



11
12
13
# File 'lib/dkim.rb', line 11

def identity
  @identity
end

#pubkeyObject

Returns the value of attribute pubkey.



11
12
13
# File 'lib/dkim.rb', line 11

def pubkey
  @pubkey
end

#querymethodObject

Returns the value of attribute querymethod.



11
12
13
# File 'lib/dkim.rb', line 11

def querymethod
  @querymethod
end

#selectorObject

Returns the value of attribute selector.



11
12
13
# File 'lib/dkim.rb', line 11

def selector
  @selector
end

#sigdataObject

Returns the value of attribute sigdata.



11
12
13
# File 'lib/dkim.rb', line 11

def sigdata
  @sigdata
end

#signature_headerObject

Returns the value of attribute signature_header.



11
12
13
# File 'lib/dkim.rb', line 11

def signature_header
  @signature_header
end

#verify_ext_statusObject

Returns the value of attribute verify_ext_status.



11
12
13
# File 'lib/dkim.rb', line 11

def verify_ext_status
  @verify_ext_status
end

#verify_statusObject

Returns the value of attribute verify_status.



11
12
13
# File 'lib/dkim.rb', line 11

def verify_status
  @verify_status
end

#versionObject

Returns the value of attribute version.



11
12
13
# File 'lib/dkim.rb', line 11

def version
  @version
end

Instance Method Details

#passed?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/dkim.rb', line 27

def passed?
  return verify_status == PDKIM_VERIFY_PASS
end