LibItsPki_TestSystem.ttcn 3.92 KB
Newer Older
/**
 *    @author     ETSI / STF545
 *    @version     $URL$
 *                $Id$
 *    @desc        Test System module for ITS PKI
 *    @copyright   ETSI Copyright Notification
 *                 No part may be reproduced except as authorized by written permission.
 *                 The copyright and the foregoing restriction extend to reproduction in all media.
 *                 All rights reserved.
 *
 */
module LibItsPki_TestSystem {
  
  // LibCommon
  import from LibCommon_Sync all;
  import from LibCommon_Time all;
  
  // LibIts
  import from IEEE1609dot2BaseTypes language "ASN.1:1997" all;
  import from IEEE1609dot2 language "ASN.1:1997" all;
  import from EtsiTs102941BaseTypes language "ASN.1:1997" all;
  import from EtsiTs102941TypesEnrolment language "ASN.1:1997" all; 
  import from EtsiTs102941TypesAuthorization language "ASN.1:1997" all;
  import from EtsiTs102941TypesAuthorizationValidation language "ASN.1:1997" all;
  import from EtsiTs102941MessagesCa language "ASN.1:1997" all;
  import from EtsiTs103097Module language "ASN.1:1997" all;
  
  // LibItsCommon
  import from LibItsCommon_TestSystem all;
  import from LibItsCommon_TypesAndValues all;
  // LibItsPki
  import from LibItsPki_TypesAndValues all;
  
  // LibItsGeoNetworking
  import from LibItsGeoNetworking_TestSystem all;
  // LibItsSecurity
  import from LibItsSecurity_TestSystem all;
  // LibItsHttp
  import from LibItsHttp_TestSystem all;
  group portDefinitions {
    
    /**
     * @desc Upper Tester port
     */
garciay's avatar
garciay committed
    type port UpperTesterPkiPort message {
      out UtPkiInitialize, UtPkiTrigger;
      in UtPkiResults;
    } // End of UpperTesterPort
    
  } // End of group portDefinitions

  group componentDefinitions {
    
Yann Garcia's avatar
Yann Garcia committed
    /**
     * @desc System component
     */
    type component ItsPkiHttpSystem extends HttpTestAdapter{
Yann Garcia's avatar
Yann Garcia committed
                                              /** Use httPort when EC and AT are served by the same end point */
      port HttpPort httpEcPort;               /** Enrolment end point */
      port HttpPort httpAtVPort;              /** Authorization Validation end point */
      port HttpPort httpAtPort;               /** Authorization end point */ 
    } // End of component ItsPkiHttpSystem
    
Yann Garcia's avatar
Yann Garcia committed
    /**
     * @desc Test component for PKI entities execpt ITS-S
     */
    type component ItsPkiHttp extends ItsSecurityBaseComponent, HttpComponent {
Yann Garcia's avatar
Yann Garcia committed
                                              /** Use httPort when EC and AT are served by the same end point */
      port HttpPort httpEcPort;               /** Enrolment end point */
      port HttpPort httpAtVPort;              /** Authorization Validation end point */
      port HttpPort httpAtPort;               /** Authorization end point */ 
Yann Garcia's avatar
Yann Garcia committed
      var Certificate vc_eaCertificate;       /** Test Adapter EA certificate */
      var octetstring vc_eaPrivateKey;        /** Test Adapter EA private key for signature */
      var octetstring vc_eaPrivateEncKey;     /** Test Adapter EA private key for encryption */
      var octetstring vc_eaWholeHash;         /** Test Adapter EA whole-hash for signature check */
Yann Garcia's avatar
Yann Garcia committed
      var HashedId8   vc_eaHashedId8;         /** Test Adapter EA HashedId8 for decryption of IUT's response */
      var octetstring vc_aaPrivateKey;        /** Test Adapter AA private key for signature */
      var octetstring vc_aaPrivateEncKey;     /** Test Adapter AA private key for encryption */
      var HashedId8   vc_aaHashedId8;         /** Test Adapter AA HashedId8 for decryption of IUT's response */
      var octetstring vc_aaWholeHash;         /** Test Adapter AA whole-hash for signature check */
Yann Garcia's avatar
Yann Garcia committed
    } // End of component ItsPki
    
    /**
     * @desc Test component for ITS-S entity
     */
    type component ItsPkiItss extends ItsPkiHttp {
garciay's avatar
garciay committed
      port UpperTesterPkiPort utPort;
      port GeoNetworkingPort geoNetworkingPort;
Yann Garcia's avatar
Yann Garcia committed
    } // End of component ItsPkiItss
    
  } // End of group componentDefinitions
} // End of module LibItsPki_TestSystem