Secure authentication and acknowledgement message
5. Segments Layout
 
Segment number:
9
-
M
9999
-
This segment group shall be used to identify a party in the security process and to give security information for the referenced EDIFACT structure.
-
M
1
-
 
Function:
 
To refer to the secured EDIFACT structure and its associated date and time.

Dependency Notes:
1. D5(050,040) If first, then all
2. D1(070,090) One and only one
3. D5(060,040) If first, then all
4. D5(080,070) If first, then all
 
EDIFACT
EAN
*
Description
0020
Interchange control reference
M
an..14
M
 
Unique reference number of interchange containing the data to which the security service was applied (UNB, DE 0020).
S002
INTERCHANGE SENDER
C
R
   
0004
Interchange sender identification
M
an..35
M
 
Identification of the party sending the interchange which contains the data to which security services were applied. It is recommended to use GLN - Format n13.
Identification code qualifier
C
an..4
R
*
=
GS1
0008
Interchange sender internal identification
C
an..35
N
   
0042
Interchange sender internal sub-identification
C
an..35
N
   
S003
INTERCHANGE RECIPIENT
C
R
   
0010
Interchange recipient identification
M
an..35
M
 
Identification of the party receiving the interchange which contains the data to which security services were applied. It is recommended to use GLN - Format n13.
Identification code qualifier
C
an..4
R
*
=
GS1
0014
Interchange recipient internal identification
C
an..35
N
   
0046
Interchange recipient internal sub-identification
C
an..35
N
   
0048
Group reference number
C
an..14
D
 
Reference to a message group (UNG to UNE) containing data to which the security service was applied (UNG, DE 0048).
S006
APPLICATION SENDER IDENTIFICATION
C
N
   
0040
Application sender identification
M
an..35
     
Identification code qualifier
C
an..4
     
S007
APPLICATION RECIPIENT IDENTIFICATION
C
N
   
0044
Application recipient identification
M
an..35
     
Identification code qualifier
C
an..4
     
0062
Message reference number
C
an..14
D
 
Reference number of a message (UNH to UNT) to which the security service was applied (UNH, DE 0062 of this message).
S009
MESSAGE IDENTIFIER
C
N
   
Message type
M
an..6
     
Message version number
M
an..3
     
Message release number
M
an..3
     
Controlling agency, coded
M
an..3
     
Association assigned code
C
an..6
     
0110
Code list directory version number
C
an..6
     
0113
Message type sub-function identification
C
an..6
     
0800
Package reference number
C
an..35
N
   
S501
SECURITY DATE AND TIME
C
N
   
Date and time qualifier
M
an..3
     
0338
Event date
C
n..8
     
0314
Event time
C
an..15
     
0336
Time offset
C
n4
     
Segment Notes:
This segment shall contain references to EDIFACT structures (i.e., interchanges, groups or messages) to which security services were applied.

The USX segment of the AUTACK message refers to a whole interchange, a message group within this interchange or a message in the interchange. Any reference made has to be non-ambiguous; if necessary the reference on a higher hierarchical level has to be indicated.

The USX segment enables the use following references:
· DE 0020  Interchange reference number
· DE 0048  Group reference number
· DE 0062  Message reference number

Application of the interchange reference number of the UNB segment:

Definition: Unique reference number generated by the sender in order to identify the interchange to which security services were applied or which contains messages or groups to which security services were applied.

The message recipient can combine the interchange reference number (DE 0020) and the sender identification (DE 0004) in order to ensure unambiguousness of the reference.

The interchange reference number as the only reference number is used if the security function (i.e., the digital signature) applies to the whole interchange. If the reference data and the AUTACK message are sent in different interchanges, then the interchange reference number is also mandatory, if the security function applies to groups or messages. If the reference data (messages or groups) and the AUTACK message are sent in the same interchange, the interchange reference number is not necessary.

Application of the group reference number of the UNG segment:

Definition: Unique reference number of a group of messages within an interchange to which security services were applied.
In this case to the USX segment refers to the unambiguous group reference number of the sender within an interchange. The group reference number is used if the security function (i.e., the digital signature) was applied to a group of messages.

Application of the message reference number of the UNH segment:

Definition: Unique reference number of a message within an interchange to which the security service was applied, generated by the sender.
In this case to the USX segment refers to the unambiguous message reference number of the sender within an interchange.
If the security service applies to every single message,
1) a separate AUTACK message needs to be sent for every message
or
2) the segment group 3 (USX/USY) has to be repeated for every message

A separate AUTACK message for every message is necessary, if the messages on their way to the recipient are forwarded within another interchange (e.g., distribution by a clearing centre).

Example:
USX+DAT001+5412345123450:14+5411234512300:14+GRP002+++MES003'
© Copyright GS1
Edition 2016