Class: FinTS::Segment::HNSHK
- Inherits:
-
BaseSegment
- Object
- BaseSegment
- FinTS::Segment::HNSHK
- Defined in:
- lib/fints/segment/hnshk.rb
Overview
HNSHK (Signaturkopf) Section B.5.1
Constant Summary collapse
- SECURITY_FUNC =
999- SECURITY_BOUNDARY =
SHM
1- SECURITY_SUPPLIER_ROLE =
ISS
1
Instance Attribute Summary
Attributes inherited from BaseSegment
Instance Method Summary collapse
-
#initialize(segno, secref, blz, username, system_id, profile_version, security_function = SECURITY_FUNC) ⇒ HNSHK
constructor
A new instance of HNSHK.
Methods inherited from BaseSegment
Constructor Details
#initialize(segno, secref, blz, username, system_id, profile_version, security_function = SECURITY_FUNC) ⇒ HNSHK
Returns a new instance of HNSHK.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fints/segment/hnshk.rb', line 10 def initialize(segno, secref, blz, username, system_id, profile_version, security_function=SECURITY_FUNC) data = [ ['PIN', profile_version.to_s].join(':'), security_function, secref, SECURITY_BOUNDARY, SECURITY_SUPPLIER_ROLE, ['1', '', system_id.to_s].join(':'), 1, ['1', Time.now.strftime('%Y%m%d'), Time.now.strftime('%H%M%S')].join(':'), ['1', '999', '1'].join(':'), # Negotiate hash algorithm ['6', '10', '16'].join(':'), # RSA mode [country_code.to_s, blz, Helper.fints_escape(username), 'S', '0', '0'].join(':') ] super(segno, data) end |