Beispiel #1
0
 /**
  * HNHBS constructor.
  * @param int $segmentNumber
  * @param int $messageNumber
  */
 public function __construct($segmentNumber, $messageNumber)
 {
     parent::__construct(static::NAME, $segmentNumber, static::VERSION, array($messageNumber));
 }
Beispiel #2
0
 /**
  * HNSHK constructor.
  * @param int $segmentNumber
  * @param string $securityReference
  * @param string $countryCode
  * @param string $bankCode
  * @param string $userName
  * @param int $systemId
  * @param int $securityFunction
  * @param int $securityBoundary
  * @param int $securitySupplierRole
  * @param int $pinTanVersion
  */
 public function __construct($segmentNumber, $securityReference, $countryCode, $bankCode, $userName, $systemId = 0, $securityFunction = self::SECURITY_FUNC_999, $securityBoundary = self::SECURITY_BOUNDARY_SHM, $securitySupplierRole = self::SECURITY_SUPPLIER_ROLE_ISS, $pinTanVersion = SecurityProfile::PROFILE_VERSION_1)
 {
     parent::__construct(static::NAME, $segmentNumber, static::VERSION, array(new SecurityProfile(SecurityProfile::PROFILE_PIN, $pinTanVersion), $securityFunction, $securityReference, $securityBoundary, $securitySupplierRole, new SecurityIdentificationDetails(SecurityIdentificationDetails::CID_NONE, $systemId), 1, new SecurityDateTime(), new HashAlgorithm(), new SignatureAlgorithm(), new KeyName($countryCode, $bankCode, $userName, KeyName::KEY_TYPE_SIGNATURE)));
 }
Beispiel #3
0
 /**
  * HKSPA constructor.
  * @param int $segmentNumber
  * @param Ktv|null $ktv
  */
 public function __construct($segmentNumber, Ktv $ktv = null)
 {
     parent::__construct(static::NAME, $segmentNumber, static::VERSION, array($ktv));
 }
Beispiel #4
0
 /**
  * HNVSK constructor.
  * @param int $segmentNumber
  * @param string $bankCode
  * @param string $userName
  * @param int $systemId
  * @param int $securitySupplierRole
  * @param int $countryCode
  * @param int $compression
  * @param int $pinTanVersion
  */
 public function __construct($segmentNumber, $bankCode, $userName, $systemId = 0, $securitySupplierRole = self::SECURITY_SUPPLIER_ROLE_ISS, $countryCode = self::DEFAULT_COUNTRY_CODE, $compression = self::COMPRESSION_NONE, $pinTanVersion = SecurityProfile::PROFILE_VERSION_1)
 {
     parent::__construct(static::NAME, $segmentNumber, static::VERSION, array(new SecurityProfile(SecurityProfile::PROFILE_PIN, $pinTanVersion), 998, $securitySupplierRole, new SecurityIdentificationDetails(SecurityIdentificationDetails::CID_NONE, $systemId), new SecurityDateTime(), new EncryptionAlgorithm(), new KeyName($countryCode, $bankCode, $userName), $compression));
 }
 /**
  * @param string          $name
  * @param AbstractSegment $reference
  *
  * @return string|null
  */
 protected function findSegmentForReference($name, AbstractSegment $reference)
 {
     $result = null;
     $segments = $this->findSegments($name);
     foreach ($segments as $seg) {
         $segSplit = $this->splitSegment($seg);
         $segSplit = array_shift($segSplit);
         $segSplit = $this->splitDeg($segSplit);
         if ($segSplit[3] == $reference->getSegmentNumber()) {
             return $seg;
         }
     }
     return null;
 }
Beispiel #6
0
 /**
  * HKIDN constructor.
  * @param int $segmentNumber
  * @param string $bankCode
  * @param string $userName
  * @param int $systemId
  */
 public function __construct($segmentNumber, $bankCode, $userName, $systemId = 0)
 {
     parent::__construct(static::NAME, $segmentNumber, static::VERSION, array(new Kik(static::COUNTRY_CODE, $bankCode), $userName, $systemId, 1));
 }
Beispiel #7
0
 /**
  * HNSHA constructor.
  * @param int $segmentNumber
  * @param string $securityControlReference
  * @param string $pin
  */
 public function __construct($segmentNumber, $securityControlReference, $pin)
 {
     parent::__construct(static::NAME, $segmentNumber, static::VERSION, array($securityControlReference, '', $pin));
 }
Beispiel #8
0
 /**
  * HNVSD constructor.
  * @param int $segmentNumber
  * @param string $encodedData
  */
 public function __construct($segmentNumber, $encodedData)
 {
     parent::__construct(static::NAME, $segmentNumber, static::VERSION, array(new Bin($encodedData)));
 }
Beispiel #9
0
 /**
  * HKKAZ constructor.
  * @param int $version
  * @param int $segmentNumber
  * @param mixed $ktv
  * @param array $allAccounts
  * @param \DateTime $from
  * @param \DateTime $to
  * @param string|null $touchdown
  */
 public function __construct($version, $segmentNumber, $ktv, $allAccounts, \DateTime $from, \DateTime $to, $touchdown = null)
 {
     parent::__construct(static::NAME, $segmentNumber, $version, array($ktv, $allAccounts, new Dat($from), new Dat($to), null, $touchdown));
 }