RNIFReceiver Module
Properties Methods Events Config Settings Errors
The RNIFReceiver module implements a RosettaNet server.
Syntax
IPWorksEDI.Rnifreceiver
Remarks
The RNIFReceiver implements server-side receiving of RosettaNet messages, as specified by the RosettaNet community. It can be used to decrypt and verify incoming messages and to generate synchronous receipts and replies if needed. The class is designed to be easily incorporated into an HTTP server. RosettaNet is used in a variety of industries including Semiconductor Manufacturing, Electronic Components, Telecommunications, Logistics, the Chemical Industry (through CIDX), and more.
BASIC OPERATION
When a RosettaNet request comes in, you should first call the ReadRequest method to read in the request. Once this is done, you must parse the headers and the request. You first parse the headers of the HTTP request using the ParseHeaders method. You may then set the appropriate certificates by setting the Certificate to your private key certificate and SignerCert to your trading partner's (signing) certificate.
The next step is to parse the RosettaNet message using ParseRequest. This method decrypts the message if needed. The class then parses all parts of the message. The preamble, delivery, and service headers are all parsed into the PreambleHeaderXML, DeliveryHeaderXML, and the ServiceHeaderXML, respectively. It also parses the actual body of the RosettaNet message, or the PIP, into the ServiceContent. Any attachments that may be in the message are parsed into the attachment array, and may be accessed via the Attachments property.
The class can also be used to handle synchronous responses. In order to complete this task, the receiver must first reset all header properties to values appropriate for a response. This may include changing values such as the MessageSenderId, MessageReceiverId, ActionCode, etc. The ServiceContent should then be set to a response indicating the state of the transaction. A typical response is a simple receipt acknowledgement, which has all qualities of a valid RosettaNet action, but is simply a receipt. Once these properties have been set, the message is ready to be sent using the SendResponse method.
NOTE: the RNIFReceiver Class can only handle sending synchronous responses. If an asynchronous response is desired, or required by a particular Partner Interface Process (PIP), you should use the RNIFSender class.
The following example illustrates how to use the class within a web page.
EXAMPLE
RNIFReceiver.ReadRequest();
RNIFReceiver.Certificate = new Certificate(CertStoreTypes.cstPFXFile, // Store type
"\my_server_directory\encrypt.pfx", // File name
"my password", // Password
"CN=Encrypt"); // Subject
RNIFReceiver.SignerCert = new Certificate("\my_server_directory\partnercert.cer");
RNIFReceiver.ParseHeaders();
RNIFReceiver.ParseRequest();
The server can then get the data from the preamble header, delivery header, service header, and the PIP content from their properties: PreambleHeaderXML, DeliveryHeaderXML, ServiceHeaderXML<;, and the ServiceContent, respectively. The message may then be easily processed, as all details of the transaction will be populated into their respective properties.
NOTE: Any attachments are saved by the name in the corresponding Attachments entry, and in the directory specified by the receiver. The directory is specified using the AttachmentOutputPath config property, and must be specified before you read and process the request. For example:
RNIFReceiver.Config("AttachmentOutputPath='\my_server_directory\Attachments'")
NOTE: In the above example, a receipt acknowledgement was not sent.
Additional functionality allows the user to examine details of the client's request, to permit certain types of errors, or to customize the RosettaNet response message. See the property and method list for details.
Property List
The following is the full list of the properties of the module with short descriptions. Click on the links for further details.
ActionCode | The code for this action. |
ActionMessage | Whether or not this message is an action message. |
ActionMessageStandardName | The name of the standard used to create this action. |
ActionMessageStandardVersion | The version of the standard used to create this action. |
Attachments | A collection of files attached to the current RNIF message. |
BusinessActivity | This property denotes the type of business activity. |
CertEffectiveDate | This is the date on which this certificate becomes valid. |
CertEncoded | This is the certificate (PEM/base64 encoded). |
CertExpirationDate | This is the date the certificate expires. |
CertExtendedKeyUsage | This is a comma-delimited list of extended key usage identifiers. |
CertFingerprint | This is the hex-encoded, 16-byte MD5 fingerprint of the certificate. |
CertFingerprintSHA1 | This is the hex-encoded, 20-byte SHA-1 fingerprint of the certificate. |
CertFingerprintSHA256 | This is the hex-encoded, 32-byte SHA-256 fingerprint of the certificate. |
CertIssuer | This is the issuer of the certificate. |
CertKeyPassword | This is the password for the certificate's private key (if any). |
CertPrivateKey | This is the private key of the certificate (if available). |
CertPrivateKeyAvailable | This property shows whether a PrivateKey is available for the selected certificate. |
CertPrivateKeyContainer | This is the name of the PrivateKey container for the certificate (if available). |
CertPublicKey | This is the public key of the certificate. |
CertPublicKeyAlgorithm | This property contains the textual description of the certificate's public key algorithm. |
CertPublicKeyLength | This is the length of the certificate's public key (in bits). |
CertSerialNumber | This is the serial number of the certificate encoded as a string. |
CertSignatureAlgorithm | The property contains the text description of the certificate's signature algorithm. |
CertStore | This is the name of the certificate store for the client certificate. |
CertStorePassword | If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store. |
CertStoreType | This is the type of certificate store for this certificate. |
CertSubject | This is the subject of the certificate used for client authentication. |
CertSubjectAltNames | This property contains comma-separated lists of alternative subject names for the certificate. |
CertThumbprintMD5 | This property contains the MD5 hash of the certificate. |
CertThumbprintSHA1 | This property contains the SHA-1 hash of the certificate. |
CertThumbprintSHA256 | This property contains the SHA-256 hash of the certificate. |
CertUsage | This property contains the text description of UsageFlags . |
CertUsageFlags | This property contains the flags that show intended use for the certificate. |
CertVersion | This property contains the certificate's version number. |
DeliveryHeaderXML | The complete XML data from the Delivery Header. |
EncryptionAlgorithm | The algorithm used to encrypt the EDI data. |
EncryptionType | The encryption type for RNIF 2.0. |
FromRole | The business role of the entity that originated this message. |
FromService | The service that originated this message. |
GlobalUsageCode | A universal code describing basic usage for this message. |
MessageDateTime | The time at which this message was sent. |
MessageReceiverId | Identity of the entity receiving this message. |
MessageReceiverLocation | Location of the entity receiving this message. |
MessageSenderId | Identity of the entity that sent this message. |
MessageSenderLocation | Location of the entity that sent this message. |
MessageTrackingId | Unique value that identifies this message. |
OriginalActionCode | The action code of the original message. |
OriginalMessageStandardName | The name of the standard used to create the original message. |
OriginalMessageStandardVersion | The version of the standard used to create the original message. |
OriginalMessageTrackingId | Tracking identifier for the original message. |
PartnerId | Identity of the partner. |
PartnerKnown | Whether or not the partner is known. |
PartnerLocation | Location of the partner. |
PartnerPIPBindingId | The partner-defined PIP payload binding ID. |
PartnerURL | A URL to which replies must be sent if the partner is unknown. |
PIPCode | RosettaNet PIP code of this message. |
PIPInstanceId | The Id of this PIP instance. |
PIPVersion | RosettaNet PIP version of this message. |
PreambleHeaderXML | The complete XML data from the Preamble Header. |
QOSSpecifications | Specifies quality of service constraints for this message. |
RecipientCertEffectiveDate | This is the date on which this certificate becomes valid. |
RecipientCertEncoded | This is the certificate (PEM/base64 encoded). |
RecipientCertExpirationDate | This is the date the certificate expires. |
RecipientCertExtendedKeyUsage | This is a comma-delimited list of extended key usage identifiers. |
RecipientCertFingerprint | This is the hex-encoded, 16-byte MD5 fingerprint of the certificate. |
RecipientCertFingerprintSHA1 | This is the hex-encoded, 20-byte SHA-1 fingerprint of the certificate. |
RecipientCertFingerprintSHA256 | This is the hex-encoded, 32-byte SHA-256 fingerprint of the certificate. |
RecipientCertIssuer | This is the issuer of the certificate. |
RecipientCertKeyPassword | This is the password for the certificate's private key (if any). |
RecipientCertPrivateKey | This is the private key of the certificate (if available). |
RecipientCertPrivateKeyAvailable | This property shows whether a PrivateKey is available for the selected certificate. |
RecipientCertPrivateKeyContainer | This is the name of the PrivateKey container for the certificate (if available). |
RecipientCertPublicKey | This is the public key of the certificate. |
RecipientCertPublicKeyAlgorithm | This property contains the textual description of the certificate's public key algorithm. |
RecipientCertPublicKeyLength | This is the length of the certificate's public key (in bits). |
RecipientCertSerialNumber | This is the serial number of the certificate encoded as a string. |
RecipientCertSignatureAlgorithm | The property contains the text description of the certificate's signature algorithm. |
RecipientCertStore | This is the name of the certificate store for the client certificate. |
RecipientCertStorePassword | If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store. |
RecipientCertStoreType | This is the type of certificate store for this certificate. |
RecipientCertSubject | This is the subject of the certificate used for client authentication. |
RecipientCertSubjectAltNames | This property contains comma-separated lists of alternative subject names for the certificate. |
RecipientCertThumbprintMD5 | This property contains the MD5 hash of the certificate. |
RecipientCertThumbprintSHA1 | This property contains the SHA-1 hash of the certificate. |
RecipientCertThumbprintSHA256 | This property contains the SHA-256 hash of the certificate. |
RecipientCertUsage | This property contains the text description of UsageFlags . |
RecipientCertUsageFlags | This property contains the flags that show intended use for the certificate. |
RecipientCertVersion | This property contains the certificate's version number. |
ReplyMessage | Whether or not this message is a reply to another message. |
Request | The HTTP request to be processed. |
RequestHeaders | The HTTP headers in the RNIF request. |
RequestHeadersString | The HTTP headers in the RNIF request. |
ResponseType | Requested response type. Available only in RNIF 2.0. |
RNIFVersion | The RNIF Standard Version used to generate this message. |
SecureTransportRequired | Indicates that security is required when forwarding this message. |
ServiceContent | The PIP message data. |
ServiceHeaderXML | The complete XML data from the Service Header. |
SignalCode | The code for this signal. |
SignalMessage | Whether or not this message is a signal. |
SignalVersion | The version of this signal. |
SignerCertEffectiveDate | This is the date on which this certificate becomes valid. |
SignerCertEncoded | This is the certificate (PEM/base64 encoded). |
SignerCertExpirationDate | This is the date the certificate expires. |
SignerCertExtendedKeyUsage | This is a comma-delimited list of extended key usage identifiers. |
SignerCertFingerprint | This is the hex-encoded, 16-byte MD5 fingerprint of the certificate. |
SignerCertFingerprintSHA1 | This is the hex-encoded, 20-byte SHA-1 fingerprint of the certificate. |
SignerCertFingerprintSHA256 | This is the hex-encoded, 32-byte SHA-256 fingerprint of the certificate. |
SignerCertIssuer | This is the issuer of the certificate. |
SignerCertKeyPassword | This is the password for the certificate's private key (if any). |
SignerCertPrivateKey | This is the private key of the certificate (if available). |
SignerCertPrivateKeyAvailable | This property shows whether a PrivateKey is available for the selected certificate. |
SignerCertPrivateKeyContainer | This is the name of the PrivateKey container for the certificate (if available). |
SignerCertPublicKey | This is the public key of the certificate. |
SignerCertPublicKeyAlgorithm | This property contains the textual description of the certificate's public key algorithm. |
SignerCertPublicKeyLength | This is the length of the certificate's public key (in bits). |
SignerCertSerialNumber | This is the serial number of the certificate encoded as a string. |
SignerCertSignatureAlgorithm | The property contains the text description of the certificate's signature algorithm. |
SignerCertStore | This is the name of the certificate store for the client certificate. |
SignerCertStorePassword | If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store. |
SignerCertStoreType | This is the type of certificate store for this certificate. |
SignerCertSubject | This is the subject of the certificate used for client authentication. |
SignerCertSubjectAltNames | This property contains comma-separated lists of alternative subject names for the certificate. |
SignerCertThumbprintMD5 | This property contains the MD5 hash of the certificate. |
SignerCertThumbprintSHA1 | This property contains the SHA-1 hash of the certificate. |
SignerCertThumbprintSHA256 | This property contains the SHA-256 hash of the certificate. |
SignerCertUsage | This property contains the text description of UsageFlags . |
SignerCertUsageFlags | This property contains the flags that show intended use for the certificate. |
SignerCertVersion | This property contains the certificate's version number. |
StandardName | The name of the standard used to create this message. |
StandardVersion | The version of the standard used to create this message. |
ToRole | The role of the entity receiving this message. |
ToService | The service for which this message is bound. |
Method List
The following is the full list of the methods of the module with short descriptions. Click on the links for further details.
Config | Sets or retrieves a configuration setting. |
ParseHeaders | Processes the headers, and populates the appropriate properties. |
ParseRequest | Parses the MIME message and determines the Message . |
ReadRequest | Reads the RNIF request from the given HTTP servlet request. |
RequestHeader | Gets the specified header from the HTTP request. |
Reset | This property is used to reset all attributes of the Rnifreceiver instance. |
SendResponse | Optional. Acknowledges the incoming request. |
Event List
The following is the full list of the events fired by the module with short descriptions. Click on the links for further details.
Error | Information about errors during data delivery. |
Config Settings
The following is a list of config settings for the module with short descriptions. Click on the links for further details.
AttachmentOutputPath | Specifies a path on disk to which attachments will be saved. |
ExpectedVersion | The RNIF document version that the RNIFReceiver is expecting to receive. |
FromPartnerClassificationCode | Code identifying the sending partner's function in the supply chain. |
GlobalProcessCode | Business process identifier e.g. 'Manage Product Subscriptions'. This code is the name of a PIP specification document. |
HTTPStatusCode | The HTTP status code to send in the response. |
MessageDigest | The base-64 encoded hash of the received data. |
RequireEncryption | Whether encryption is required when processing received messages. |
RequireSignature | Whether a signature is required when processing received messages. |
SignatureAlgorithm | Signature algorithm to be used in outgoing messages. |
ToPartnerClassificationCode | Code identifying the receiving partner's function in the supply chain. |
TransactionCode | Service transaction dialog. The code is the name of the business activity and the transaction dialog in the PIP specification document. |
TransactionId | A unique alpha-numeric identifier that represents a specific instance of an business process, business transaction, business action or business signal. The instance identifier must be unique for a particular instance of a business process, business transaction, business action and business signal. |
TransferredData | The full body of the incoming request. |
TransferredHeaders | The HTTP headers of the incoming request. |
BuildInfo | Information about the product's build. |
CodePage | The system code page used for Unicode to Multibyte translations. |
LicenseInfo | Information about the current license. |
UseInternalSecurityAPI | Tells the module whether or not to use the system security libraries or an internal implementation. |
ActionCode Property (RNIFReceiver Module)
The code for this action.
Syntax
public var actionCode: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=actionCode,setter=setActionCode:) NSString* actionCode; - (NSString*)actionCode; - (void)setActionCode :(NSString*)newActionCode;
Default Value
""
Remarks
This property is a string which denotes the type of action for the current RosettaNet message, if it is an action. If it is a reply, then the ActionCode describes the type of action that the message is in reply to. An example is a "Purchase Order Request Action."
This property is a field of the service header.
ActionMessage Property (RNIFReceiver Module)
Whether or not this message is an action message.
Syntax
public var actionMessage: Bool { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=actionMessage,setter=setActionMessage:) BOOL actionMessage; - (BOOL)actionMessage; - (void)setActionMessage :(BOOL)newActionMessage;
Default Value
False
Remarks
This property indicates whether or not the message is an action message. A RosettaNet action is defined as a message which requires or requests a business activity. A "PurchaseOrderRequestMessage" is a valid Business Action message, as is the corresponding "PurchaseOrderConfirmMessage". The latter, however, is also a reply to the original action request.
Receipt acknowledgments are considered Signals, and not Business Action messages, even though they contain all of the properties of a valid Business Action message.
This property is a field of the service header.
ActionMessageStandardName Property (RNIFReceiver Module)
The name of the standard used to create this action.
Syntax
public var actionMessageStandardName: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=actionMessageStandardName,setter=setActionMessageStandardName:) NSString* actionMessageStandardName; - (NSString*)actionMessageStandardName; - (void)setActionMessageStandardName :(NSString*)newActionMessageStandardName;
Default Value
""
Remarks
While the RosettaNet community has a set of widely adopted, pre-defined and standardized message templates, it also allows for business partners to agree on specification geared more toward their particular needs. If a special, non-RosettaNet standard is to be used to create the action message, the name of the standard must be reported in ActionMessageStandardName and the version in ActionMessageStandardVersion. This way, the receiving entity can know how to process and interpret the incoming business message.
Since replies may sent in response to a message created using such a specialized standard, the standard used to create the original message should be referenced using the OriginalMessageStandardName and OriginalMessageStandardVersion when creating or processing replies.
This property is a field of the service header.
ActionMessageStandardVersion Property (RNIFReceiver Module)
The version of the standard used to create this action.
Syntax
public var actionMessageStandardVersion: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=actionMessageStandardVersion,setter=setActionMessageStandardVersion:) NSString* actionMessageStandardVersion; - (NSString*)actionMessageStandardVersion; - (void)setActionMessageStandardVersion :(NSString*)newActionMessageStandardVersion;
Default Value
""
Remarks
While the RosettaNet community has a set of widely adopted, pre-defined and standardized message templates, it also allows for business partners to agree on specification geared more toward their particular needs. If a special, non-RosettaNet standard is to be used to create the action message, the name of the standard must be reported in ActionMessageStandardName and the version in ActionMessageStandardVersion. This way, the receiving entity can know how to process and interpret the incoming business message.
Since replies may sent in response to a message created using such a specialized standard, the standard used to create the original message should be referenced using the OriginalMessageStandardName and OriginalMessageStandardVersion when creating or processing replies.
This property is a field of the service header.
Attachments Property (RNIFReceiver Module)
A collection of files attached to the current RNIF message.
Syntax
public var attachments: Array<RNIFAttachment> { get {...} }
@property (nonatomic,readwrite,assign,getter=attachmentCount,setter=setAttachmentCount:) int attachmentCount; - (int)attachmentCount; - (void)setAttachmentCount :(int)newAttachmentCount; - (NSString*)attachmentData:(int)attachmentIndex; - (void)setAttachmentData:(int)attachmentIndex :(NSString*)newAttachmentData; - (NSData*)attachmentDataB:(int)attachmentIndex; - (void)setAttachmentDataB:(int)attachmentIndex :(NSData*)newAttachmentData; - (NSString*)attachmentDescription:(int)attachmentIndex; - (void)setAttachmentDescription:(int)attachmentIndex :(NSString*)newAttachmentDescription; - (NSString*)attachmentFilename:(int)attachmentIndex; - (void)setAttachmentFilename:(int)attachmentIndex :(NSString*)newAttachmentFilename; - (NSString*)attachmentId:(int)attachmentIndex; - (void)setAttachmentId:(int)attachmentIndex :(NSString*)newAttachmentId; - (NSString*)attachmentMIMEType:(int)attachmentIndex; - (void)setAttachmentMIMEType:(int)attachmentIndex :(NSString*)newAttachmentMIMEType;
Default Value
""
Remarks
This property describes the type of service that is being provided by the receiver of this message. This can be a short description of the service being provided, e.g. "Seller Service".
This property is a field of the service header.
BusinessActivity Property (RNIFReceiver Module)
This property denotes the type of business activity.
Syntax
public var businessActivity: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=businessActivity,setter=setBusinessActivity:) NSString* businessActivity; - (NSString*)businessActivity; - (void)setBusinessActivity :(NSString*)newBusinessActivity;
Default Value
""
Remarks
This property simply tells the receiver what type of business activity the RosettaNet document that is sent refers to. An example is: "Create Purchase Order".
CertEffectiveDate Property (RNIFReceiver Module)
This is the date on which this certificate becomes valid.
Syntax
public var certEffectiveDate: String { get {...} }
@property (nonatomic,readonly,assign,getter=certEffectiveDate) NSString* certEffectiveDate; - (NSString*)certEffectiveDate;
Default Value
""
Remarks
This is the date on which this certificate becomes valid. Before this date, it is not valid. The following example illustrates the format of an encoded date:
23-Jan-2000 15:00:00.
This property is read-only.
CertEncoded Property (RNIFReceiver Module)
This is the certificate (PEM/base64 encoded).
Syntax
public var certEncoded: String { get {...} set {...} }
public var certEncodedB: Data { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=certEncoded,setter=setCertEncoded:) NSString* certEncoded; - (NSString*)certEncoded; - (void)setCertEncoded :(NSString*)newCertEncoded; @property (nonatomic,readwrite,assign,getter=certEncodedB,setter=setCertEncodedB:) NSData* certEncodedB; - (NSData*)certEncodedB; - (void)setCertEncodedB :(NSData*)newCertEncoded;
Default Value
""
Remarks
This is the certificate (PEM/base64 encoded). This property is used to assign a specific certificate. The CertStore and CertSubject properties also may be used to specify a certificate.
When CertEncoded is set, a search is initiated in the current CertStore for the private key of the certificate. If the key is found, CertSubject is updated to reflect the full subject of the selected certificate; otherwise, CertSubject is set to an empty string.
If an error occurs when setting this property an error will not be thrown. This property has a related method which will throw an error:
public func setCertEncodedB(certEncoded: Data) throws public func setCertEncoded(certEncoded: String) throws
CertExpirationDate Property (RNIFReceiver Module)
This is the date the certificate expires.
Syntax
public var certExpirationDate: String { get {...} }
@property (nonatomic,readonly,assign,getter=certExpirationDate) NSString* certExpirationDate; - (NSString*)certExpirationDate;
Default Value
""
Remarks
This is the date the certificate expires. After this date, the certificate will no longer be valid. The following example illustrates the format of an encoded date:
23-Jan-2001 15:00:00.
This property is read-only.
CertExtendedKeyUsage Property (RNIFReceiver Module)
This is a comma-delimited list of extended key usage identifiers.
Syntax
public var certExtendedKeyUsage: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=certExtendedKeyUsage,setter=setCertExtendedKeyUsage:) NSString* certExtendedKeyUsage; - (NSString*)certExtendedKeyUsage; - (void)setCertExtendedKeyUsage :(NSString*)newCertExtendedKeyUsage;
Default Value
""
Remarks
This is a comma-delimited list of extended key usage identifiers. These are the same as ASN.1 object identifiers (OIDs).
CertFingerprint Property (RNIFReceiver Module)
This is the hex-encoded, 16-byte MD5 fingerprint of the certificate.
Syntax
public var certFingerprint: String { get {...} }
@property (nonatomic,readonly,assign,getter=certFingerprint) NSString* certFingerprint; - (NSString*)certFingerprint;
Default Value
""
Remarks
This is the hex-encoded, 16-byte MD5 fingerprint of the certificate.
The following example illustrates the format: bc:2a:72:af:fe:58:17:43:7a:5f:ba:5a:7c:90:f7:02
This property is read-only.
CertFingerprintSHA1 Property (RNIFReceiver Module)
This is the hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
Syntax
public var certFingerprintSHA1: String { get {...} }
@property (nonatomic,readonly,assign,getter=certFingerprintSHA1) NSString* certFingerprintSHA1; - (NSString*)certFingerprintSHA1;
Default Value
""
Remarks
This is the hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
The following example illustrates the format: 30:7b:fa:38:65:83:ff:da:b4:4e:07:3f:17:b8:a4:ed:80:be:ff:84
This property is read-only.
CertFingerprintSHA256 Property (RNIFReceiver Module)
This is the hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
Syntax
public var certFingerprintSHA256: String { get {...} }
@property (nonatomic,readonly,assign,getter=certFingerprintSHA256) NSString* certFingerprintSHA256; - (NSString*)certFingerprintSHA256;
Default Value
""
Remarks
This is the hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
The following example illustrates the format: 6a:80:5c:33:a9:43:ea:b0:96:12:8a:64:96:30:ef:4a:8a:96:86:ce:f4:c7:be:10:24:8e:2b:60:9e:f3:59:53
This property is read-only.
CertIssuer Property (RNIFReceiver Module)
This is the issuer of the certificate.
Syntax
public var certIssuer: String { get {...} }
@property (nonatomic,readonly,assign,getter=certIssuer) NSString* certIssuer; - (NSString*)certIssuer;
Default Value
""
Remarks
This is the issuer of the certificate. This property contains a string representation of the name of the issuing authority for the certificate.
This property is read-only.
CertKeyPassword Property (RNIFReceiver Module)
This is the password for the certificate's private key (if any).
Syntax
public var certKeyPassword: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=certKeyPassword,setter=setCertKeyPassword:) NSString* certKeyPassword; - (NSString*)certKeyPassword; - (void)setCertKeyPassword :(NSString*)newCertKeyPassword;
Default Value
""
Remarks
This is the password for the certificate's private key (if any).
Some certificate stores may individually protect certificates' private keys, separate from the standard protection offered by the CertStorePassword. CertKeyPassword. This field can be used to read such password-protected private keys.
Note: this property defaults to the value of CertStorePassword. To clear it, you must set the property to the empty string (""). It can be set at any time, but when the private key's password is different from the store's password, then it must be set before calling CertPrivateKey.
CertPrivateKey Property (RNIFReceiver Module)
This is the private key of the certificate (if available).
Syntax
public var certPrivateKey: String { get {...} }
@property (nonatomic,readonly,assign,getter=certPrivateKey) NSString* certPrivateKey; - (NSString*)certPrivateKey;
Default Value
""
Remarks
This is the private key of the certificate (if available). The key is provided as PEM/Base64-encoded data.
Note: The CertPrivateKey may be available but not exportable. In this case, CertPrivateKey returns an empty string.
This property is read-only.
CertPrivateKeyAvailable Property (RNIFReceiver Module)
This property shows whether a PrivateKey is available for the selected certificate.
Syntax
public var certPrivateKeyAvailable: Bool { get {...} }
@property (nonatomic,readonly,assign,getter=certPrivateKeyAvailable) BOOL certPrivateKeyAvailable; - (BOOL)certPrivateKeyAvailable;
Default Value
False
Remarks
This property shows whether a CertPrivateKey is available for the selected certificate. If CertPrivateKeyAvailable is True, the certificate may be used for authentication purposes (e.g., server authentication).
This property is read-only.
CertPrivateKeyContainer Property (RNIFReceiver Module)
This is the name of the PrivateKey container for the certificate (if available).
Syntax
public var certPrivateKeyContainer: String { get {...} }
@property (nonatomic,readonly,assign,getter=certPrivateKeyContainer) NSString* certPrivateKeyContainer; - (NSString*)certPrivateKeyContainer;
Default Value
""
Remarks
This is the name of the CertPrivateKey container for the certificate (if available). This functionality is available only on Windows platforms.
This property is read-only.
CertPublicKey Property (RNIFReceiver Module)
This is the public key of the certificate.
Syntax
public var certPublicKey: String { get {...} }
@property (nonatomic,readonly,assign,getter=certPublicKey) NSString* certPublicKey; - (NSString*)certPublicKey;
Default Value
""
Remarks
This is the public key of the certificate. The key is provided as PEM/Base64-encoded data.
This property is read-only.
CertPublicKeyAlgorithm Property (RNIFReceiver Module)
This property contains the textual description of the certificate's public key algorithm.
Syntax
public var certPublicKeyAlgorithm: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=certPublicKeyAlgorithm,setter=setCertPublicKeyAlgorithm:) NSString* certPublicKeyAlgorithm; - (NSString*)certPublicKeyAlgorithm; - (void)setCertPublicKeyAlgorithm :(NSString*)newCertPublicKeyAlgorithm;
Default Value
""
Remarks
This property contains the textual description of the certificate's public key algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_DH") or an object identifier (OID) string representing the algorithm.
CertPublicKeyLength Property (RNIFReceiver Module)
This is the length of the certificate's public key (in bits).
Syntax
public var certPublicKeyLength: Int32 { get {...} }
@property (nonatomic,readonly,assign,getter=certPublicKeyLength) int certPublicKeyLength; - (int)certPublicKeyLength;
Default Value
0
Remarks
This is the length of the certificate's public key (in bits). Common values are 512, 1024, and 2048.
This property is read-only.
CertSerialNumber Property (RNIFReceiver Module)
This is the serial number of the certificate encoded as a string.
Syntax
public var certSerialNumber: String { get {...} }
@property (nonatomic,readonly,assign,getter=certSerialNumber) NSString* certSerialNumber; - (NSString*)certSerialNumber;
Default Value
""
Remarks
This is the serial number of the certificate encoded as a string. The number is encoded as a series of hexadecimal digits, with each pair representing a byte of the serial number.
This property is read-only.
CertSignatureAlgorithm Property (RNIFReceiver Module)
The property contains the text description of the certificate's signature algorithm.
Syntax
public var certSignatureAlgorithm: String { get {...} }
@property (nonatomic,readonly,assign,getter=certSignatureAlgorithm) NSString* certSignatureAlgorithm; - (NSString*)certSignatureAlgorithm;
Default Value
""
Remarks
The property contains the text description of the certificate's signature algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_MD5RSA") or an object identifier (OID) string representing the algorithm.
This property is read-only.
CertStore Property (RNIFReceiver Module)
This is the name of the certificate store for the client certificate.
Syntax
public var certStore: String { get {...} set {...} }
public var certStoreB: Data { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=certStore,setter=setCertStore:) NSString* certStore; - (NSString*)certStore; - (void)setCertStore :(NSString*)newCertStore; @property (nonatomic,readwrite,assign,getter=certStoreB,setter=setCertStoreB:) NSData* certStoreB; - (NSData*)certStoreB; - (void)setCertStoreB :(NSData*)newCertStore;
Default Value
"MY"
Remarks
This is the name of the certificate store for the client certificate.
The CertStoreType property denotes the type of the certificate store specified by CertStore. If the store is password protected, specify the password in CertStorePassword.
CertStore is used in conjunction with the CertSubject property to specify client certificates. If CertStore has a value, and CertSubject or CertEncoded is set, a search for a certificate is initiated. Please see the CertSubject property for details.
Designations of certificate stores are platform-dependent.
The following are designations of the most common User and Machine certificate stores in Windows:
MY | A certificate store holding personal certificates with their associated private keys. |
CA | Certifying authority certificates. |
ROOT | Root certificates. |
When the certificate store type is PFXFile, this property must be set to the name of the file. When the type is PFXBlob, the property must be set to the binary contents of a PFX file (i.e. PKCS12 certificate store).
CertStorePassword Property (RNIFReceiver Module)
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Syntax
public var certStorePassword: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=certStorePassword,setter=setCertStorePassword:) NSString* certStorePassword; - (NSString*)certStorePassword; - (void)setCertStorePassword :(NSString*)newCertStorePassword;
Default Value
""
Remarks
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
CertStoreType Property (RNIFReceiver Module)
This is the type of certificate store for this certificate.
Syntax
public var certStoreType: RnifreceiverCertStoreTypes { get {...} set {...} }
public enum RnifreceiverCertStoreTypes: Int32 { case cstUser = 0 case cstMachine = 1 case cstPFXFile = 2 case cstPFXBlob = 3 case cstJKSFile = 4 case cstJKSBlob = 5 case cstPEMKeyFile = 6 case cstPEMKeyBlob = 7 case cstPublicKeyFile = 8 case cstPublicKeyBlob = 9 case cstSSHPublicKeyBlob = 10 case cstP7BFile = 11 case cstP7BBlob = 12 case cstSSHPublicKeyFile = 13 case cstPPKFile = 14 case cstPPKBlob = 15 case cstXMLFile = 16 case cstXMLBlob = 17 case cstJWKFile = 18 case cstJWKBlob = 19 case cstSecurityKey = 20 case cstBCFKSFile = 21 case cstBCFKSBlob = 22 case cstAuto = 99 }
@property (nonatomic,readwrite,assign,getter=certStoreType,setter=setCertStoreType:) int certStoreType; - (int)certStoreType; - (void)setCertStoreType :(int)newCertStoreType;
Default Value
0
Remarks
This is the type of certificate store for this certificate.
The class supports both public and private keys in a variety of formats. When the cstAuto value is used the class will automatically determine the type. This property can take one of the following values:
0 (cstUser - default) | For Windows, this specifies that the certificate store is a certificate store owned by the current user. Note: this store type is not available in Java. |
1 (cstMachine) | For Windows, this specifies that the certificate store is a machine store. Note: this store type is not available in Java. |
2 (cstPFXFile) | The certificate store is the name of a PFX (PKCS12) file containing certificates. |
3 (cstPFXBlob) | The certificate store is a string (binary or base64-encoded) representing a certificate store in PFX (PKCS12) format. |
4 (cstJKSFile) | The certificate store is the name of a Java Key Store (JKS) file containing certificates. Note: this store type is only available in Java. |
5 (cstJKSBlob) | The certificate store is a string (binary or base64-encoded) representing a certificate store in Java Key Store (JKS) format. Note: this store type is only available in Java. |
6 (cstPEMKeyFile) | The certificate store is the name of a PEM-encoded file that contains a private key and an optional certificate. |
7 (cstPEMKeyBlob) | The certificate store is a string (binary or base64-encoded) that contains a private key and an optional certificate. |
8 (cstPublicKeyFile) | The certificate store is the name of a file that contains a PEM- or DER-encoded public key certificate. |
9 (cstPublicKeyBlob) | The certificate store is a string (binary or base64-encoded) that contains a PEM- or DER-encoded public key certificate. |
10 (cstSSHPublicKeyBlob) | The certificate store is a string (binary or base64-encoded) that contains an SSH-style public key. |
11 (cstP7BFile) | The certificate store is the name of a PKCS7 file containing certificates. |
12 (cstP7BBlob) | The certificate store is a string (binary) representing a certificate store in PKCS7 format. |
13 (cstSSHPublicKeyFile) | The certificate store is the name of a file that contains an SSH-style public key. |
14 (cstPPKFile) | The certificate store is the name of a file that contains a PPK (PuTTY Private Key). |
15 (cstPPKBlob) | The certificate store is a string (binary) that contains a PPK (PuTTY Private Key). |
16 (cstXMLFile) | The certificate store is the name of a file that contains a certificate in XML format. |
17 (cstXMLBlob) | The certificate store is a string that contains a certificate in XML format. |
18 (cstJWKFile) | The certificate store is the name of a file that contains a JWK (JSON Web Key). |
19 (cstJWKBlob) | The certificate store is a string that contains a JWK (JSON Web Key). |
20 (cstSecurityKey) | The certificate is present on a physical security key accessible via a PKCS11 interface.
To use a security key the necessary data must first be collected using the CertMgr class. The ListStoreCertificates method may be called after setting CertStoreType to cstSecurityKey, CertStorePassword to the PIN, and CertStore to the full path of the PKCS11 dll. The certificate information returned in the CertList event's CertEncoded parameter may be saved for later use. When using a certificate, pass the previously saved security key information as the CertStore and set CertStorePassword to the PIN. Code Example: SSH Authentication with Security Key
|
21 (cstBCFKSFile) | The certificate store is the name of a file that contains a BCFKS (Bouncy Castle FIPS Key Store). Note: this store type is only available in Java and .NET. |
22 (cstBCFKSBlob) | The certificate store is a string (binary or base64-encoded) representing a certificate store in BCFKS (Bouncy Castle FIPS Key Store) format. Note: this store type is only available in Java and .NET. |
99 (cstAuto) | The store type is automatically detected from the input data. This setting may be used with both public and private keys and can detect any of the supported formats automatically. |
CertSubject Property (RNIFReceiver Module)
This is the subject of the certificate used for client authentication.
Syntax
public var certSubject: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=certSubject,setter=setCertSubject:) NSString* certSubject; - (NSString*)certSubject; - (void)setCertSubject :(NSString*)newCertSubject;
Default Value
""
Remarks
This is the subject of the certificate used for client authentication.
This property must be set after all other certificate properites are set. When this property is set, a search is performed in the current certificate store certificate with matching subject.
If a matching certificate is found, the property is set to the full subject of the matching certificate.
If an exact match is not found, the store is searched for subjects containing the value of the property.
If a match is still not found, the property is set to an empty string, and no certificate is selected.
The special value "*" picks a random certificate in the certificate store.
The certificate subject is a comma separated list of distinguished name fields and values. For instance "CN=www.server.com, OU=test, C=US, E=support@nsoftware.com". Common fields and their meanings are displayed below.
Field | Meaning |
CN | Common Name. This is commonly a host name like www.server.com. |
O | Organization |
OU | Organizational Unit |
L | Locality |
S | State |
C | Country |
E | Email Address |
If a field value contains a comma it must be quoted.
If an error occurs when setting this property an error will not be thrown. This property has a related method which will throw an error:
public func setCertSubject(certSubject: String) throws
CertSubjectAltNames Property (RNIFReceiver Module)
This property contains comma-separated lists of alternative subject names for the certificate.
Syntax
public var certSubjectAltNames: String { get {...} }
@property (nonatomic,readonly,assign,getter=certSubjectAltNames) NSString* certSubjectAltNames; - (NSString*)certSubjectAltNames;
Default Value
""
Remarks
This property contains comma-separated lists of alternative subject names for the certificate.
This property is read-only.
CertThumbprintMD5 Property (RNIFReceiver Module)
This property contains the MD5 hash of the certificate.
Syntax
public var certThumbprintMD5: String { get {...} }
@property (nonatomic,readonly,assign,getter=certThumbprintMD5) NSString* certThumbprintMD5; - (NSString*)certThumbprintMD5;
Default Value
""
Remarks
This property contains the MD5 hash of the certificate. If the hash does not already exist, it is computed.
This property is read-only.
CertThumbprintSHA1 Property (RNIFReceiver Module)
This property contains the SHA-1 hash of the certificate.
Syntax
public var certThumbprintSHA1: String { get {...} }
@property (nonatomic,readonly,assign,getter=certThumbprintSHA1) NSString* certThumbprintSHA1; - (NSString*)certThumbprintSHA1;
Default Value
""
Remarks
This property contains the SHA-1 hash of the certificate. If the hash does not already exist, it is computed.
This property is read-only.
CertThumbprintSHA256 Property (RNIFReceiver Module)
This property contains the SHA-256 hash of the certificate.
Syntax
public var certThumbprintSHA256: String { get {...} }
@property (nonatomic,readonly,assign,getter=certThumbprintSHA256) NSString* certThumbprintSHA256; - (NSString*)certThumbprintSHA256;
Default Value
""
Remarks
This property contains the SHA-256 hash of the certificate. If the hash does not already exist, it is computed.
This property is read-only.
CertUsage Property (RNIFReceiver Module)
This property contains the text description of UsageFlags .
Syntax
public var certUsage: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=certUsage,setter=setCertUsage:) NSString* certUsage; - (NSString*)certUsage; - (void)setCertUsage :(NSString*)newCertUsage;
Default Value
""
Remarks
This property contains the text description of CertUsageFlags.
This value will be of one or more of the following strings and will be separated by commas:
- Digital Signatures
- Key Authentication
- Key Encryption
- Data Encryption
- Key Agreement
- Certificate Signing
- Key Signing
If the provider is OpenSSL, the value is a comma-separated list of X.509 certificate extension names.
CertUsageFlags Property (RNIFReceiver Module)
This property contains the flags that show intended use for the certificate.
Syntax
public var certUsageFlags: Int32 { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=certUsageFlags,setter=setCertUsageFlags:) int certUsageFlags; - (int)certUsageFlags; - (void)setCertUsageFlags :(int)newCertUsageFlags;
Default Value
0
Remarks
This property contains the flags that show intended use for the certificate. The value of CertUsageFlags is a combination of the following flags:
0x80 | Digital Signatures |
0x40 | Key Authentication |
0x20 | Key Encryption |
0x10 | Data Encryption |
0x08 | Key Agreement |
0x04 | Certificate Signing |
0x02 | Key Signing |
Please see the CertUsage property for a text representation of CertUsageFlags.
This functionality currently is not available when the provider is OpenSSL.
CertVersion Property (RNIFReceiver Module)
This property contains the certificate's version number.
Syntax
public var certVersion: String { get {...} }
@property (nonatomic,readonly,assign,getter=certVersion) NSString* certVersion; - (NSString*)certVersion;
Default Value
""
Remarks
This property contains the certificate's version number. The possible values are the strings "V1", "V2", and "V3".
This property is read-only.
DeliveryHeaderXML Property (RNIFReceiver Module)
The complete XML data from the Delivery Header.
Syntax
public var deliveryHeaderXML: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=deliveryHeaderXML,setter=setDeliveryHeaderXML:) NSString* deliveryHeaderXML; - (NSString*)deliveryHeaderXML; - (void)setDeliveryHeaderXML :(NSString*)newDeliveryHeaderXML;
Default Value
""
Remarks
This property is the full XML data of the RosettaNet message Delivery Header. This header contains information about the sending and receiving business processes, as well as tracking data for the message itself. This header was introduced by RNIF 2.0 to speed the movement of RosettaNet messages through message-forwarding hubs.
This property is an aggregate property containing XML either generated from or parsed into various other properties of the class. If the value of a related property changes, this property will be updated the next time it is polled and the current valid XML will be returned. When this property is set directly, the class will automatically parse the XML and validate the content of the header to ensure that all required fields contain appropriate values. Once this property has been set and validated, the following properties will be populated:
- SecureTransportRequired
- MessageDateTime
- MessageReceiverId
- MessageReceiverLocation
- MessageSenderId
- MessageSenderLocation
- MessageTrackingId
NOTE: If RNIFVersion is set to v1, the value of this property is ignored when generating messages.
EncryptionAlgorithm Property (RNIFReceiver Module)
The algorithm used to encrypt the EDI data.
Syntax
public var encryptionAlgorithm: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=encryptionAlgorithm,setter=setEncryptionAlgorithm:) NSString* encryptionAlgorithm; - (NSString*)encryptionAlgorithm; - (void)setEncryptionAlgorithm :(NSString*)newEncryptionAlgorithm;
Default Value
"3DES"
Remarks
If RecipientCerts contains a valid certificate, the data will be encrypted using this certificate and the algorithm specified in EncryptionAlgorithm. If EncryptionAlgorithm is set to the empty string, the data will not be encrypted.
The class supports "3DES", or industry-standard 168-bit Triple-DES encryption.
The class supports "AES" encryption with a default keysize of 128 bits. You may also set "AESCBC192" or "AESCBC256" for 192- and 256-bit keysizes.
Possible values are:
- 3DES (default)
- DES
- AESCBC128
- AESCBC192
- AESCBC256
- AESGCM128
- AESGCM192
- AESGCM256
EncryptionType Property (RNIFReceiver Module)
The encryption type for RNIF 2.0.
Syntax
public var encryptionType: RnifreceiverEncryptionTypes { get {...} set {...} }
public enum RnifreceiverEncryptionTypes: Int32 { case etNoEncryption = 0 case etEncryptServiceContent = 1 case etEncryptPayloadContainer = 2 }
@property (nonatomic,readwrite,assign,getter=encryptionType,setter=setEncryptionType:) int encryptionType; - (int)encryptionType; - (void)setEncryptionType :(int)newEncryptionType;
Default Value
0
Remarks
RNIF 2.0 allows encryption of a message at three different levels:
0 (etNoEncryption) | The entire contents of the RosettaNet message are unencrypted. |
1 (etEncryptServiceContent) | The service content and attachments are encrypted. |
2 (etEncryptPayloadContainer) | The service header, content, and attachments are encrypted. |
NOTE: By default, the value is etNoEncryption. Therefore, if encryption is desired, the EncryptionType property must be specified, even if a certificate is supplied through the certificate properties. See RecipientCert for more information on specifying a certificate for encryption.
FromRole Property (RNIFReceiver Module)
The business role of the entity that originated this message.
Syntax
public var fromRole: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=fromRole,setter=setFromRole:) NSString* fromRole; - (NSString*)fromRole; - (void)setFromRole :(NSString*)newFromRole;
Default Value
""
Remarks
This property describes what role the process sending this message plays in the business model. This may be a one-word description, e.g. "Buyer".
This property is a field of the service header.
FromService Property (RNIFReceiver Module)
The service that originated this message.
Syntax
public var fromService: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=fromService,setter=setFromService:) NSString* fromService; - (NSString*)fromService; - (void)setFromService :(NSString*)newFromService;
Default Value
""
Remarks
This property describes the type of service that is being provided by the sender of this message. This can be a short description of the service being provided, e.g. "Buyer Service".
This property is a field of the service header.
GlobalUsageCode Property (RNIFReceiver Module)
A universal code describing basic usage for this message.
Syntax
public var globalUsageCode: RnifreceiverGlobalUsageCodes { get {...} set {...} }
public enum RnifreceiverGlobalUsageCodes: Int32 { case gucTest = 0 case gucProduction = 1 }
@property (nonatomic,readwrite,assign,getter=globalUsageCode,setter=setGlobalUsageCode:) int globalUsageCode; - (int)globalUsageCode; - (void)setGlobalUsageCode :(int)newGlobalUsageCode;
Default Value
0
Remarks
GlobalUsageCode is a value that specifies how the RosettaNet message is to be treated from a business standpoint.This property currently only supports the following two values:
- 0 (gucTest)
- 1 (gucProduction)
This property is a field of the service header.
MessageDateTime Property (RNIFReceiver Module)
The time at which this message was sent.
Syntax
public var messageDateTime: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=messageDateTime,setter=setMessageDateTime:) NSString* messageDateTime; - (NSString*)messageDateTime; - (void)setMessageDateTime :(NSString*)newMessageDateTime;
Default Value
""
Remarks
This property is a date and time stamp representing the moment the RosettaNet message was created. The sending process should set this value as close to the time when it sends as possible. The accepted standard for date fields in RosettaNet messages uses the format "YYYYMMDDThhmmss.sssZ", e.g. "20001121T145200.000Z". The format is interpreted as follows:
YYYY | This is the year of the time stamp. |
MM | This is the month of the time stamp. |
DD | This specifies the day of the month. |
T | The 'T' denotes the separation between the date and the time stamps. |
hh | This is the hour, in 24 hour format in which the message was sent. |
mm | This specifies the minutes at which the message was sent. |
ss.sss | This is the seconds at which the message was sent. Everything after the decimal is a fraction of a seconds. |
Z | This is a delimiter for the end of the date/time stamp. |
The message in the example was sent at 2:52:00.000 PM November 11, 2000.
This property is a field of the delivery header.
MessageReceiverId Property (RNIFReceiver Module)
Identity of the entity receiving this message.
Syntax
public var messageReceiverId: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=messageReceiverId,setter=setMessageReceiverId:) NSString* messageReceiverId; - (NSString*)messageReceiverId; - (void)setMessageReceiverId :(NSString*)newMessageReceiverId;
Default Value
""
Remarks
MessageReceiverId describes the identity of the receiver for this message. It is specifically the DUNS number for the trading partner.
This property is a field of the delivery header.
MessageReceiverLocation Property (RNIFReceiver Module)
Location of the entity receiving this message.
Syntax
public var messageReceiverLocation: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=messageReceiverLocation,setter=setMessageReceiverLocation:) NSString* messageReceiverLocation; - (NSString*)messageReceiverLocation; - (void)setMessageReceiverLocation :(NSString*)newMessageReceiverLocation;
Default Value
""
Remarks
This property describes the location of the receiver for this message. The location is not an address, but may be a city name.
This property is a field of the delivery header.
MessageSenderId Property (RNIFReceiver Module)
Identity of the entity that sent this message.
Syntax
public var messageSenderId: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=messageSenderId,setter=setMessageSenderId:) NSString* messageSenderId; - (NSString*)messageSenderId; - (void)setMessageSenderId :(NSString*)newMessageSenderId;
Default Value
""
Remarks
MessageSenderId describes the identity of the sender for this message. It is specifically the DUNS number for the trading partner.
This property is a field of the delivery header.
MessageSenderLocation Property (RNIFReceiver Module)
Location of the entity that sent this message.
Syntax
public var messageSenderLocation: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=messageSenderLocation,setter=setMessageSenderLocation:) NSString* messageSenderLocation; - (NSString*)messageSenderLocation; - (void)setMessageSenderLocation :(NSString*)newMessageSenderLocation;
Default Value
""
Remarks
This property describes the location of the sender for this message. The location is not an address, but may be a city name.
This property is a field of the delivery header.
MessageTrackingId Property (RNIFReceiver Module)
Unique value that identifies this message.
Syntax
public var messageTrackingId: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=messageTrackingId,setter=setMessageTrackingId:) NSString* messageTrackingId; - (NSString*)messageTrackingId; - (void)setMessageTrackingId :(NSString*)newMessageTrackingId;
Default Value
""
Remarks
MessageTrackingId is a unique instance identifier for this message. This value is used by both parties to keep a record of all the messages it receives. It is the responsibility of the sender to ensure that this value is unique for each transaction. The receiving entity should respond with an error if it receives a message with a previously used tracking id. This value can be used to persist any information relevant to the current business process to an external database .
This property is a field of the delivery header.
OriginalActionCode Property (RNIFReceiver Module)
The action code of the original message.
Syntax
public var originalActionCode: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=originalActionCode,setter=setOriginalActionCode:) NSString* originalActionCode; - (NSString*)originalActionCode; - (void)setOriginalActionCode :(NSString*)newOriginalActionCode;
Default Value
""
Remarks
This property describes the action code of the original message. This is useful when acquiring or processing replies. This tells a process what the original action was which started the current business process of actions and replies.
This property is a field of the service header.
OriginalMessageStandardName Property (RNIFReceiver Module)
The name of the standard used to create the original message.
Syntax
public var originalMessageStandardName: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=originalMessageStandardName,setter=setOriginalMessageStandardName:) NSString* originalMessageStandardName; - (NSString*)originalMessageStandardName; - (void)setOriginalMessageStandardName :(NSString*)newOriginalMessageStandardName;
Default Value
""
Remarks
While the RosettaNet community has a set of widely adopted, pre-defined and standardized message templates, it also allows for business partners to agree on specification geared more toward their particular needs. If a special, non-RosettaNet standard is to be used to create the action message, the name of the standard must be reported in ActionMessageStandardName and the version in ActionMessageStandardVersion. This way, the receiving entity can know how to process and interpret the incoming business message.
Since replies may sent in response to a message created using such a specialized standard, the standard used to create the original message should be referenced using the OriginalMessageStandardName and OriginalMessageStandardVersion when creating or processing replies.
This property is a field of the service header.
OriginalMessageStandardVersion Property (RNIFReceiver Module)
The version of the standard used to create the original message.
Syntax
public var originalMessageStandardVersion: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=originalMessageStandardVersion,setter=setOriginalMessageStandardVersion:) NSString* originalMessageStandardVersion; - (NSString*)originalMessageStandardVersion; - (void)setOriginalMessageStandardVersion :(NSString*)newOriginalMessageStandardVersion;
Default Value
""
Remarks
While the RosettaNet community has a set of widely adopted, pre-defined and standardized message templates, it also allows for business partners to agree on specification geared more toward their particular needs. If a special, non-RosettaNet standard is to be used to create the action message, the name of the standard must be reported in ActionMessageStandardName and the version in ActionMessageStandardVersion. This way, the receiving entity can know how to process and interpret the incoming business message.
Since replies may sent in response to a message created using such a specialized standard, the standard used to create the original message should be referenced using the OriginalMessageStandardName and OriginalMessageStandardVersion when creating or processing replies.
This property is a field of the service header.
OriginalMessageTrackingId Property (RNIFReceiver Module)
Tracking identifier for the original message.
Syntax
public var originalMessageTrackingId: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=originalMessageTrackingId,setter=setOriginalMessageTrackingId:) NSString* originalMessageTrackingId; - (NSString*)originalMessageTrackingId; - (void)setOriginalMessageTrackingId :(NSString*)newOriginalMessageTrackingId;
Default Value
""
Remarks
This property contains the identifier used to track the original message. This can be used when processing replies to previous actions to look up details about the original action that started the current business process. Complementary to the MessageTrackingId, this property can be used to retrieve any information relevant to the current business process from an external database.
This property is a field of the service header.
PartnerId Property (RNIFReceiver Module)
Identity of the partner.
Syntax
public var partnerId: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=partnerId,setter=setPartnerId:) NSString* partnerId; - (NSString*)partnerId; - (void)setPartnerId :(NSString*)newPartnerId;
Default Value
""
Remarks
PartnerKnown denotes whether or not the initiating partner for the current transaction is known. If the partner is known the sender should specify their business identifier using the PartnerId property. This allows the receiving entity to look up information on how to reply, or forward the current message, to the partner in question. Also, PartnerLocation can be specified. This property is not an address, but may be a city.
NOTE: If the partner is not known, then a PartnerURL MUST be specified in order for the messages and responses to reach their appropriate destinations.
This property is a field of the service header.
PartnerKnown Property (RNIFReceiver Module)
Whether or not the partner is known.
Syntax
public var partnerKnown: Bool { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=partnerKnown,setter=setPartnerKnown:) BOOL partnerKnown; - (BOOL)partnerKnown; - (void)setPartnerKnown :(BOOL)newPartnerKnown;
Default Value
False
Remarks
PartnerKnown denotes whether or not the initiating partner for the current transaction is known. If the partner is known the sender should specify their business identifier using the PartnerId property. This allows the receiving entity to look up information on how to reply, or forward the current message, to the partner in question. Also, PartnerLocation can be specified. This property is not an address, but may be a city.
NOTE: If the partner is not known, then a PartnerURL MUST be specified in order for the messages and responses to reach their appropriate destinations.
This property is a field of the service header.
PartnerLocation Property (RNIFReceiver Module)
Location of the partner.
Syntax
public var partnerLocation: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=partnerLocation,setter=setPartnerLocation:) NSString* partnerLocation; - (NSString*)partnerLocation; - (void)setPartnerLocation :(NSString*)newPartnerLocation;
Default Value
""
Remarks
PartnerKnown denotes whether or not the initiating partner for the current transaction is known. If the partner is known the sender should specify their business identifier using the PartnerId property. This allows the receiving entity to look up information on how to reply, or forward the current message, to the partner in question. Also, PartnerLocation can be specified. This property is not an address, but may be a city.
NOTE: If the partner is not known, then a PartnerURL MUST be specified in order for the messages and responses to reach their appropriate destinations.
This property is a field of the service header.
PartnerPIPBindingId Property (RNIFReceiver Module)
The partner-defined PIP payload binding ID.
Syntax
public var partnerPIPBindingId: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=partnerPIPBindingId,setter=setPartnerPIPBindingId:) NSString* partnerPIPBindingId; - (NSString*)partnerPIPBindingId; - (void)setPartnerPIPBindingId :(NSString*)newPartnerPIPBindingId;
Default Value
""
Remarks
This property is only defined when non-RosettaNet content is bound in the payload portion of the RosettaNet Business message. This may only be used with PIPs which specifically support the use of non-RosettaNet content. Both trading partners must agree on the use of non-RosettaNet content, and on the Id being used. The Id is used to identify the two partners' own version of the PIP used.
NOTE: This property MUST be set when non-RosettaNet content is being sent in the payload, and MUST NOT be set when regular PIP's are being used.
PartnerURL Property (RNIFReceiver Module)
A URL to which replies must be sent if the partner is unknown.
Syntax
public var partnerURL: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=partnerURL,setter=setPartnerURL:) NSString* partnerURL; - (NSString*)partnerURL; - (void)setPartnerURL :(NSString*)newPartnerURL;
Default Value
""
Remarks
PartnerKnown denotes whether or not the initiating partner for the current transaction is known. If the partner is known the sender should specify their business identifier using the PartnerId property. This allows the receiving entity to look up information on how to reply, or forward the current message, to the partner in question. Also, PartnerLocation can be specified. This property is not an address, but may be a city.
NOTE: If the partner is not known, then a PartnerURL MUST be specified in order for the messages and responses to reach their appropriate destinations.
This property is a field of the service header.
This property is a field of the service header.
NOTE: If partner is unknown and this value is not specified, further processing may not be possible.
PIPCode Property (RNIFReceiver Module)
RosettaNet PIP code of this message.
Syntax
public var pipCode: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=PIPCode,setter=setPIPCode:) NSString* PIPCode; - (NSString*)PIPCode; - (void)setPIPCode :(NSString*)newPIPCode;
Default Value
""
Remarks
The ServiceContent of a RosettaNet message is an instance of a pre-defined, widely accepted and standardized RosettaNet business action document called a Partner Interface Process (PIP). These documents define the most common business action scenarios, as well as the most common information used by a company to complete transactions under these scenarios. Each PIP has its own code, and many PIPs are defined in multiple versions. To ensure that the receiving partner knows how to interpret the PIP instance, the code should be set in PIPCode and the version in PIPVersion.
Since no two business actions are exactly the same, each instance of PIP needs to have an associated identifier so that information about the transaction may be easily persisted to and retrieved from an external database. These instance ids are reported by the PIPInstanceId property. It is up to the sending client to ensure that this value is unique. The receiver should respond with an error if it receives a PIP instance id that has already been used.
This property is a field of the service header.
PIPInstanceId Property (RNIFReceiver Module)
The Id of this PIP instance.
Syntax
public var pipInstanceId: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=PIPInstanceId,setter=setPIPInstanceId:) NSString* PIPInstanceId; - (NSString*)PIPInstanceId; - (void)setPIPInstanceId :(NSString*)newPIPInstanceId;
Default Value
""
Remarks
The ServiceContent of a RosettaNet message is an instance of a pre-defined, widely accepted and standardized RosettaNet business action document called a Partner Interface Process (PIP). These documents define the most common business action scenarios, as well as the most common information used by a company to complete transactions under these scenarios. Each PIP has its own code, and many PIPs are defined in multiple versions. To ensure that the receiving partner knows how to interpret the PIP instance, the code should be set in PIPCode and the version in PIPVersion.
Since no two business actions are exactly the same, each instance of PIP needs to have an associated identifier so that information about the transaction may be easily persisted to and retrieved from an external database. These instance ids are reported by the PIPInstanceId property. It is up to the sending client to ensure that this value is unique. The receiver should respond with an error if it receives a PIP instance id that has already been used.
This property is a field of the service header.
PIPVersion Property (RNIFReceiver Module)
RosettaNet PIP version of this message.
Syntax
public var pipVersion: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=PIPVersion,setter=setPIPVersion:) NSString* PIPVersion; - (NSString*)PIPVersion; - (void)setPIPVersion :(NSString*)newPIPVersion;
Default Value
""
Remarks
The ServiceContent of a RosettaNet message is an instance of a pre-defined, widely accepted and standardized RosettaNet business action document called a Partner Interface Process (PIP). These documents define the most common business action scenarios, as well as the most common information used by a company to complete transactions under these scenarios. Each PIP has its own code, and many PIPs are defined in multiple versions. To ensure that the receiving partner knows how to interpret the PIP instance, the code should be set in PIPCode and the version in PIPVersion.
Since no two business actions are exactly the same, each instance of PIP needs to have an associated identifier so that information about the transaction may be easily persisted to and retrieved from an external database. These instance ids are reported by the PIPInstanceId property. It is up to the sending client to ensure that this value is unique. The receiver should respond with an error if it receives a PIP instance id that has already been used.
This property is a field of the service header.
PreambleHeaderXML Property (RNIFReceiver Module)
The complete XML data from the Preamble Header.
Syntax
public var preambleHeaderXML: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=preambleHeaderXML,setter=setPreambleHeaderXML:) NSString* preambleHeaderXML; - (NSString*)preambleHeaderXML; - (void)setPreambleHeaderXML :(NSString*)newPreambleHeaderXML;
Default Value
""
Remarks
The contents of PreambleHeaderXML are the full XML data RosettaNet message Preamble Header. This header includes information about the version of the RosettaNet Implementation Framework (RNIF) protocol used to create the message.
This property is an aggregate property containing XML either generated from or parsed into various other properties of the class. If the value of a related property changes, this property will be updated the next time it is polled and the current valid XML will be returned. When this property is set directly, the class will automatically parse the XML and validate the content of the header to ensure that all required fields contain appropriate values. Once this property has been set and validated, the following properties will be populated:
QOSSpecifications Property (RNIFReceiver Module)
Specifies quality of service constraints for this message.
Syntax
public var qosSpecifications: Array<QOSSpecification> { get {...} }
@property (nonatomic,readwrite,assign,getter=QOSSpecificationCount,setter=setQOSSpecificationCount:) int QOSSpecificationCount; - (int)QOSSpecificationCount; - (void)setQOSSpecificationCount :(int)newQOSSpecificationCount; - (NSString*)QOSSpecificationCode:(int)qOSIndex; - (void)setQOSSpecificationCode:(int)qOSIndex :(NSString*)newQOSSpecificationCode; - (NSString*)QOSSpecificationValue:(int)qOSIndex; - (void)setQOSSpecificationValue:(int)qOSIndex :(NSString*)newQOSSpecificationValue;
Default Value
""
Remarks
This property describes the type of service that is being provided by the receiver of this message. This can be a short description of the service being provided, e.g. "Seller Service".
This property is a field of the service header.
RecipientCertEffectiveDate Property (RNIFReceiver Module)
This is the date on which this certificate becomes valid.
Syntax
public var recipientCertEffectiveDate: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertEffectiveDate) NSString* recipientCertEffectiveDate; - (NSString*)recipientCertEffectiveDate;
Default Value
""
Remarks
This is the date on which this certificate becomes valid. Before this date, it is not valid. The following example illustrates the format of an encoded date:
23-Jan-2000 15:00:00.
This property is read-only.
RecipientCertEncoded Property (RNIFReceiver Module)
This is the certificate (PEM/base64 encoded).
Syntax
public var recipientCertEncoded: String { get {...} set {...} }
public var recipientCertEncodedB: Data { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=recipientCertEncoded,setter=setRecipientCertEncoded:) NSString* recipientCertEncoded; - (NSString*)recipientCertEncoded; - (void)setRecipientCertEncoded :(NSString*)newRecipientCertEncoded; @property (nonatomic,readwrite,assign,getter=recipientCertEncodedB,setter=setRecipientCertEncodedB:) NSData* recipientCertEncodedB; - (NSData*)recipientCertEncodedB; - (void)setRecipientCertEncodedB :(NSData*)newRecipientCertEncoded;
Default Value
""
Remarks
This is the certificate (PEM/base64 encoded). This property is used to assign a specific certificate. The RecipientCertStore and RecipientCertSubject properties also may be used to specify a certificate.
When RecipientCertEncoded is set, a search is initiated in the current RecipientCertStore for the private key of the certificate. If the key is found, RecipientCertSubject is updated to reflect the full subject of the selected certificate; otherwise, RecipientCertSubject is set to an empty string.
If an error occurs when setting this property an error will not be thrown. This property has a related method which will throw an error:
public func setRecipientCertEncodedB(recipientCertEncoded: Data) throws public func setRecipientCertEncoded(recipientCertEncoded: String) throws
RecipientCertExpirationDate Property (RNIFReceiver Module)
This is the date the certificate expires.
Syntax
public var recipientCertExpirationDate: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertExpirationDate) NSString* recipientCertExpirationDate; - (NSString*)recipientCertExpirationDate;
Default Value
""
Remarks
This is the date the certificate expires. After this date, the certificate will no longer be valid. The following example illustrates the format of an encoded date:
23-Jan-2001 15:00:00.
This property is read-only.
RecipientCertExtendedKeyUsage Property (RNIFReceiver Module)
This is a comma-delimited list of extended key usage identifiers.
Syntax
public var recipientCertExtendedKeyUsage: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=recipientCertExtendedKeyUsage,setter=setRecipientCertExtendedKeyUsage:) NSString* recipientCertExtendedKeyUsage; - (NSString*)recipientCertExtendedKeyUsage; - (void)setRecipientCertExtendedKeyUsage :(NSString*)newRecipientCertExtendedKeyUsage;
Default Value
""
Remarks
This is a comma-delimited list of extended key usage identifiers. These are the same as ASN.1 object identifiers (OIDs).
RecipientCertFingerprint Property (RNIFReceiver Module)
This is the hex-encoded, 16-byte MD5 fingerprint of the certificate.
Syntax
public var recipientCertFingerprint: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertFingerprint) NSString* recipientCertFingerprint; - (NSString*)recipientCertFingerprint;
Default Value
""
Remarks
This is the hex-encoded, 16-byte MD5 fingerprint of the certificate.
The following example illustrates the format: bc:2a:72:af:fe:58:17:43:7a:5f:ba:5a:7c:90:f7:02
This property is read-only.
RecipientCertFingerprintSHA1 Property (RNIFReceiver Module)
This is the hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
Syntax
public var recipientCertFingerprintSHA1: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertFingerprintSHA1) NSString* recipientCertFingerprintSHA1; - (NSString*)recipientCertFingerprintSHA1;
Default Value
""
Remarks
This is the hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
The following example illustrates the format: 30:7b:fa:38:65:83:ff:da:b4:4e:07:3f:17:b8:a4:ed:80:be:ff:84
This property is read-only.
RecipientCertFingerprintSHA256 Property (RNIFReceiver Module)
This is the hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
Syntax
public var recipientCertFingerprintSHA256: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertFingerprintSHA256) NSString* recipientCertFingerprintSHA256; - (NSString*)recipientCertFingerprintSHA256;
Default Value
""
Remarks
This is the hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
The following example illustrates the format: 6a:80:5c:33:a9:43:ea:b0:96:12:8a:64:96:30:ef:4a:8a:96:86:ce:f4:c7:be:10:24:8e:2b:60:9e:f3:59:53
This property is read-only.
RecipientCertIssuer Property (RNIFReceiver Module)
This is the issuer of the certificate.
Syntax
public var recipientCertIssuer: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertIssuer) NSString* recipientCertIssuer; - (NSString*)recipientCertIssuer;
Default Value
""
Remarks
This is the issuer of the certificate. This property contains a string representation of the name of the issuing authority for the certificate.
This property is read-only.
RecipientCertKeyPassword Property (RNIFReceiver Module)
This is the password for the certificate's private key (if any).
Syntax
public var recipientCertKeyPassword: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=recipientCertKeyPassword,setter=setRecipientCertKeyPassword:) NSString* recipientCertKeyPassword; - (NSString*)recipientCertKeyPassword; - (void)setRecipientCertKeyPassword :(NSString*)newRecipientCertKeyPassword;
Default Value
""
Remarks
This is the password for the certificate's private key (if any).
Some certificate stores may individually protect certificates' private keys, separate from the standard protection offered by the RecipientCertStorePassword. RecipientCertKeyPassword. This field can be used to read such password-protected private keys.
Note: this property defaults to the value of RecipientCertStorePassword. To clear it, you must set the property to the empty string (""). It can be set at any time, but when the private key's password is different from the store's password, then it must be set before calling RecipientCertPrivateKey.
RecipientCertPrivateKey Property (RNIFReceiver Module)
This is the private key of the certificate (if available).
Syntax
public var recipientCertPrivateKey: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertPrivateKey) NSString* recipientCertPrivateKey; - (NSString*)recipientCertPrivateKey;
Default Value
""
Remarks
This is the private key of the certificate (if available). The key is provided as PEM/Base64-encoded data.
Note: The RecipientCertPrivateKey may be available but not exportable. In this case, RecipientCertPrivateKey returns an empty string.
This property is read-only.
RecipientCertPrivateKeyAvailable Property (RNIFReceiver Module)
This property shows whether a PrivateKey is available for the selected certificate.
Syntax
public var recipientCertPrivateKeyAvailable: Bool { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertPrivateKeyAvailable) BOOL recipientCertPrivateKeyAvailable; - (BOOL)recipientCertPrivateKeyAvailable;
Default Value
False
Remarks
This property shows whether a RecipientCertPrivateKey is available for the selected certificate. If RecipientCertPrivateKeyAvailable is True, the certificate may be used for authentication purposes (e.g., server authentication).
This property is read-only.
RecipientCertPrivateKeyContainer Property (RNIFReceiver Module)
This is the name of the PrivateKey container for the certificate (if available).
Syntax
public var recipientCertPrivateKeyContainer: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertPrivateKeyContainer) NSString* recipientCertPrivateKeyContainer; - (NSString*)recipientCertPrivateKeyContainer;
Default Value
""
Remarks
This is the name of the RecipientCertPrivateKey container for the certificate (if available). This functionality is available only on Windows platforms.
This property is read-only.
RecipientCertPublicKey Property (RNIFReceiver Module)
This is the public key of the certificate.
Syntax
public var recipientCertPublicKey: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertPublicKey) NSString* recipientCertPublicKey; - (NSString*)recipientCertPublicKey;
Default Value
""
Remarks
This is the public key of the certificate. The key is provided as PEM/Base64-encoded data.
This property is read-only.
RecipientCertPublicKeyAlgorithm Property (RNIFReceiver Module)
This property contains the textual description of the certificate's public key algorithm.
Syntax
public var recipientCertPublicKeyAlgorithm: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=recipientCertPublicKeyAlgorithm,setter=setRecipientCertPublicKeyAlgorithm:) NSString* recipientCertPublicKeyAlgorithm; - (NSString*)recipientCertPublicKeyAlgorithm; - (void)setRecipientCertPublicKeyAlgorithm :(NSString*)newRecipientCertPublicKeyAlgorithm;
Default Value
""
Remarks
This property contains the textual description of the certificate's public key algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_DH") or an object identifier (OID) string representing the algorithm.
RecipientCertPublicKeyLength Property (RNIFReceiver Module)
This is the length of the certificate's public key (in bits).
Syntax
public var recipientCertPublicKeyLength: Int32 { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertPublicKeyLength) int recipientCertPublicKeyLength; - (int)recipientCertPublicKeyLength;
Default Value
0
Remarks
This is the length of the certificate's public key (in bits). Common values are 512, 1024, and 2048.
This property is read-only.
RecipientCertSerialNumber Property (RNIFReceiver Module)
This is the serial number of the certificate encoded as a string.
Syntax
public var recipientCertSerialNumber: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertSerialNumber) NSString* recipientCertSerialNumber; - (NSString*)recipientCertSerialNumber;
Default Value
""
Remarks
This is the serial number of the certificate encoded as a string. The number is encoded as a series of hexadecimal digits, with each pair representing a byte of the serial number.
This property is read-only.
RecipientCertSignatureAlgorithm Property (RNIFReceiver Module)
The property contains the text description of the certificate's signature algorithm.
Syntax
public var recipientCertSignatureAlgorithm: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertSignatureAlgorithm) NSString* recipientCertSignatureAlgorithm; - (NSString*)recipientCertSignatureAlgorithm;
Default Value
""
Remarks
The property contains the text description of the certificate's signature algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_MD5RSA") or an object identifier (OID) string representing the algorithm.
This property is read-only.
RecipientCertStore Property (RNIFReceiver Module)
This is the name of the certificate store for the client certificate.
Syntax
public var recipientCertStore: String { get {...} set {...} }
public var recipientCertStoreB: Data { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=recipientCertStore,setter=setRecipientCertStore:) NSString* recipientCertStore; - (NSString*)recipientCertStore; - (void)setRecipientCertStore :(NSString*)newRecipientCertStore; @property (nonatomic,readwrite,assign,getter=recipientCertStoreB,setter=setRecipientCertStoreB:) NSData* recipientCertStoreB; - (NSData*)recipientCertStoreB; - (void)setRecipientCertStoreB :(NSData*)newRecipientCertStore;
Default Value
"MY"
Remarks
This is the name of the certificate store for the client certificate.
The RecipientCertStoreType property denotes the type of the certificate store specified by RecipientCertStore. If the store is password protected, specify the password in RecipientCertStorePassword.
RecipientCertStore is used in conjunction with the RecipientCertSubject property to specify client certificates. If RecipientCertStore has a value, and RecipientCertSubject or RecipientCertEncoded is set, a search for a certificate is initiated. Please see the RecipientCertSubject property for details.
Designations of certificate stores are platform-dependent.
The following are designations of the most common User and Machine certificate stores in Windows:
MY | A certificate store holding personal certificates with their associated private keys. |
CA | Certifying authority certificates. |
ROOT | Root certificates. |
When the certificate store type is PFXFile, this property must be set to the name of the file. When the type is PFXBlob, the property must be set to the binary contents of a PFX file (i.e. PKCS12 certificate store).
RecipientCertStorePassword Property (RNIFReceiver Module)
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Syntax
public var recipientCertStorePassword: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=recipientCertStorePassword,setter=setRecipientCertStorePassword:) NSString* recipientCertStorePassword; - (NSString*)recipientCertStorePassword; - (void)setRecipientCertStorePassword :(NSString*)newRecipientCertStorePassword;
Default Value
""
Remarks
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
RecipientCertStoreType Property (RNIFReceiver Module)
This is the type of certificate store for this certificate.
Syntax
public var recipientCertStoreType: RnifreceiverRecipientCertStoreTypes { get {...} set {...} }
public enum RnifreceiverRecipientCertStoreTypes: Int32 { case cstUser = 0 case cstMachine = 1 case cstPFXFile = 2 case cstPFXBlob = 3 case cstJKSFile = 4 case cstJKSBlob = 5 case cstPEMKeyFile = 6 case cstPEMKeyBlob = 7 case cstPublicKeyFile = 8 case cstPublicKeyBlob = 9 case cstSSHPublicKeyBlob = 10 case cstP7BFile = 11 case cstP7BBlob = 12 case cstSSHPublicKeyFile = 13 case cstPPKFile = 14 case cstPPKBlob = 15 case cstXMLFile = 16 case cstXMLBlob = 17 case cstJWKFile = 18 case cstJWKBlob = 19 case cstSecurityKey = 20 case cstBCFKSFile = 21 case cstBCFKSBlob = 22 case cstAuto = 99 }
@property (nonatomic,readwrite,assign,getter=recipientCertStoreType,setter=setRecipientCertStoreType:) int recipientCertStoreType; - (int)recipientCertStoreType; - (void)setRecipientCertStoreType :(int)newRecipientCertStoreType;
Default Value
0
Remarks
This is the type of certificate store for this certificate.
The class supports both public and private keys in a variety of formats. When the cstAuto value is used the class will automatically determine the type. This property can take one of the following values:
0 (cstUser - default) | For Windows, this specifies that the certificate store is a certificate store owned by the current user. Note: this store type is not available in Java. |
1 (cstMachine) | For Windows, this specifies that the certificate store is a machine store. Note: this store type is not available in Java. |
2 (cstPFXFile) | The certificate store is the name of a PFX (PKCS12) file containing certificates. |
3 (cstPFXBlob) | The certificate store is a string (binary or base64-encoded) representing a certificate store in PFX (PKCS12) format. |
4 (cstJKSFile) | The certificate store is the name of a Java Key Store (JKS) file containing certificates. Note: this store type is only available in Java. |
5 (cstJKSBlob) | The certificate store is a string (binary or base64-encoded) representing a certificate store in Java Key Store (JKS) format. Note: this store type is only available in Java. |
6 (cstPEMKeyFile) | The certificate store is the name of a PEM-encoded file that contains a private key and an optional certificate. |
7 (cstPEMKeyBlob) | The certificate store is a string (binary or base64-encoded) that contains a private key and an optional certificate. |
8 (cstPublicKeyFile) | The certificate store is the name of a file that contains a PEM- or DER-encoded public key certificate. |
9 (cstPublicKeyBlob) | The certificate store is a string (binary or base64-encoded) that contains a PEM- or DER-encoded public key certificate. |
10 (cstSSHPublicKeyBlob) | The certificate store is a string (binary or base64-encoded) that contains an SSH-style public key. |
11 (cstP7BFile) | The certificate store is the name of a PKCS7 file containing certificates. |
12 (cstP7BBlob) | The certificate store is a string (binary) representing a certificate store in PKCS7 format. |
13 (cstSSHPublicKeyFile) | The certificate store is the name of a file that contains an SSH-style public key. |
14 (cstPPKFile) | The certificate store is the name of a file that contains a PPK (PuTTY Private Key). |
15 (cstPPKBlob) | The certificate store is a string (binary) that contains a PPK (PuTTY Private Key). |
16 (cstXMLFile) | The certificate store is the name of a file that contains a certificate in XML format. |
17 (cstXMLBlob) | The certificate store is a string that contains a certificate in XML format. |
18 (cstJWKFile) | The certificate store is the name of a file that contains a JWK (JSON Web Key). |
19 (cstJWKBlob) | The certificate store is a string that contains a JWK (JSON Web Key). |
20 (cstSecurityKey) | The certificate is present on a physical security key accessible via a PKCS11 interface.
To use a security key the necessary data must first be collected using the CertMgr class. The ListStoreCertificates method may be called after setting CertStoreType to cstSecurityKey, CertStorePassword to the PIN, and CertStore to the full path of the PKCS11 dll. The certificate information returned in the CertList event's CertEncoded parameter may be saved for later use. When using a certificate, pass the previously saved security key information as the RecipientCertStore and set RecipientCertStorePassword to the PIN. Code Example: SSH Authentication with Security Key
|
21 (cstBCFKSFile) | The certificate store is the name of a file that contains a BCFKS (Bouncy Castle FIPS Key Store). Note: this store type is only available in Java and .NET. |
22 (cstBCFKSBlob) | The certificate store is a string (binary or base64-encoded) representing a certificate store in BCFKS (Bouncy Castle FIPS Key Store) format. Note: this store type is only available in Java and .NET. |
99 (cstAuto) | The store type is automatically detected from the input data. This setting may be used with both public and private keys and can detect any of the supported formats automatically. |
RecipientCertSubject Property (RNIFReceiver Module)
This is the subject of the certificate used for client authentication.
Syntax
public var recipientCertSubject: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=recipientCertSubject,setter=setRecipientCertSubject:) NSString* recipientCertSubject; - (NSString*)recipientCertSubject; - (void)setRecipientCertSubject :(NSString*)newRecipientCertSubject;
Default Value
""
Remarks
This is the subject of the certificate used for client authentication.
This property must be set after all other certificate properites are set. When this property is set, a search is performed in the current certificate store certificate with matching subject.
If a matching certificate is found, the property is set to the full subject of the matching certificate.
If an exact match is not found, the store is searched for subjects containing the value of the property.
If a match is still not found, the property is set to an empty string, and no certificate is selected.
The special value "*" picks a random certificate in the certificate store.
The certificate subject is a comma separated list of distinguished name fields and values. For instance "CN=www.server.com, OU=test, C=US, E=support@nsoftware.com". Common fields and their meanings are displayed below.
Field | Meaning |
CN | Common Name. This is commonly a host name like www.server.com. |
O | Organization |
OU | Organizational Unit |
L | Locality |
S | State |
C | Country |
E | Email Address |
If a field value contains a comma it must be quoted.
If an error occurs when setting this property an error will not be thrown. This property has a related method which will throw an error:
public func setRecipientCertSubject(recipientCertSubject: String) throws
RecipientCertSubjectAltNames Property (RNIFReceiver Module)
This property contains comma-separated lists of alternative subject names for the certificate.
Syntax
public var recipientCertSubjectAltNames: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertSubjectAltNames) NSString* recipientCertSubjectAltNames; - (NSString*)recipientCertSubjectAltNames;
Default Value
""
Remarks
This property contains comma-separated lists of alternative subject names for the certificate.
This property is read-only.
RecipientCertThumbprintMD5 Property (RNIFReceiver Module)
This property contains the MD5 hash of the certificate.
Syntax
public var recipientCertThumbprintMD5: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertThumbprintMD5) NSString* recipientCertThumbprintMD5; - (NSString*)recipientCertThumbprintMD5;
Default Value
""
Remarks
This property contains the MD5 hash of the certificate. If the hash does not already exist, it is computed.
This property is read-only.
RecipientCertThumbprintSHA1 Property (RNIFReceiver Module)
This property contains the SHA-1 hash of the certificate.
Syntax
public var recipientCertThumbprintSHA1: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertThumbprintSHA1) NSString* recipientCertThumbprintSHA1; - (NSString*)recipientCertThumbprintSHA1;
Default Value
""
Remarks
This property contains the SHA-1 hash of the certificate. If the hash does not already exist, it is computed.
This property is read-only.
RecipientCertThumbprintSHA256 Property (RNIFReceiver Module)
This property contains the SHA-256 hash of the certificate.
Syntax
public var recipientCertThumbprintSHA256: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertThumbprintSHA256) NSString* recipientCertThumbprintSHA256; - (NSString*)recipientCertThumbprintSHA256;
Default Value
""
Remarks
This property contains the SHA-256 hash of the certificate. If the hash does not already exist, it is computed.
This property is read-only.
RecipientCertUsage Property (RNIFReceiver Module)
This property contains the text description of UsageFlags .
Syntax
public var recipientCertUsage: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=recipientCertUsage,setter=setRecipientCertUsage:) NSString* recipientCertUsage; - (NSString*)recipientCertUsage; - (void)setRecipientCertUsage :(NSString*)newRecipientCertUsage;
Default Value
""
Remarks
This property contains the text description of RecipientCertUsageFlags.
This value will be of one or more of the following strings and will be separated by commas:
- Digital Signatures
- Key Authentication
- Key Encryption
- Data Encryption
- Key Agreement
- Certificate Signing
- Key Signing
If the provider is OpenSSL, the value is a comma-separated list of X.509 certificate extension names.
RecipientCertUsageFlags Property (RNIFReceiver Module)
This property contains the flags that show intended use for the certificate.
Syntax
public var recipientCertUsageFlags: Int32 { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=recipientCertUsageFlags,setter=setRecipientCertUsageFlags:) int recipientCertUsageFlags; - (int)recipientCertUsageFlags; - (void)setRecipientCertUsageFlags :(int)newRecipientCertUsageFlags;
Default Value
0
Remarks
This property contains the flags that show intended use for the certificate. The value of RecipientCertUsageFlags is a combination of the following flags:
0x80 | Digital Signatures |
0x40 | Key Authentication |
0x20 | Key Encryption |
0x10 | Data Encryption |
0x08 | Key Agreement |
0x04 | Certificate Signing |
0x02 | Key Signing |
Please see the RecipientCertUsage property for a text representation of RecipientCertUsageFlags.
This functionality currently is not available when the provider is OpenSSL.
RecipientCertVersion Property (RNIFReceiver Module)
This property contains the certificate's version number.
Syntax
public var recipientCertVersion: String { get {...} }
@property (nonatomic,readonly,assign,getter=recipientCertVersion) NSString* recipientCertVersion; - (NSString*)recipientCertVersion;
Default Value
""
Remarks
This property contains the certificate's version number. The possible values are the strings "V1", "V2", and "V3".
This property is read-only.
ReplyMessage Property (RNIFReceiver Module)
Whether or not this message is a reply to another message.
Syntax
public var replyMessage: Bool { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=replyMessage,setter=setReplyMessage:) BOOL replyMessage; - (BOOL)replyMessage; - (void)setReplyMessage :(BOOL)newReplyMessage;
Default Value
False
Remarks
This property is a boolean value indicating whether or not the message is a reply to a previous message or not. The first message in any business process is always an action message. Reply messages may be an update, another action, or a signal.
Some actions may request data, in which case a reply RosettaNet message must be sent with the data that was requested. All action messages sent in response to the original action message are considered replies.
When sending a reply, this property should be set to "True" to tell the receiver how to interpret and handle the message.
This property is a field of the service header.
Request Property (RNIFReceiver Module)
The HTTP request to be processed.
Syntax
public var request: String { get {...} set {...} }
public var requestB: Data { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=request,setter=setRequest:) NSString* request; - (NSString*)request; - (void)setRequest :(NSString*)newRequest; @property (nonatomic,readwrite,assign,getter=requestB,setter=setRequestB:) NSData* requestB; - (NSData*)requestB; - (void)setRequestB :(NSData*)newRequest;
Default Value
""
Remarks
This property holds the body of the request to be processed. The HTTP headers may be set separately in RequestHeaders or may be included in Request. If they are included, a double CRLF pair should be used to separate the headers from the body.
When ReadRequest is called the contents of Request are overwritten.
RequestHeaders Property (RNIFReceiver Module)
The HTTP headers in the RNIF request.
Syntax
public var requestHeaders: Array<Header> { get {...} }
@property (nonatomic,readwrite,assign,getter=requestHeaderCount,setter=setRequestHeaderCount:) int requestHeaderCount; - (int)requestHeaderCount; - (void)setRequestHeaderCount :(int)newRequestHeaderCount; - (NSString*)requestHeaderField:(int)requestHeaderIndex; - (void)setRequestHeaderField:(int)requestHeaderIndex :(NSString*)newRequestHeaderField; - (NSString*)requestHeaderValue:(int)requestHeaderIndex; - (void)setRequestHeaderValue:(int)requestHeaderIndex :(NSString*)newRequestHeaderValue;
Default Value
""
Remarks
This property describes the type of service that is being provided by the receiver of this message. This can be a short description of the service being provided, e.g. "Seller Service".
This property is a field of the service header.
RequestHeadersString Property (RNIFReceiver Module)
The HTTP headers in the RNIF request.
Syntax
public var requestHeadersString: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=requestHeadersString,setter=setRequestHeadersString:) NSString* requestHeadersString; - (NSString*)requestHeadersString; - (void)setRequestHeadersString :(NSString*)newRequestHeadersString;
Default Value
""
Remarks
The entire list of headers, concatenated into a single string. These will include RNIF-specific headers as well as general HTTP headers. You may access specific headers through RequestHeaders.
When assigning an RNIF request to the component, the headers may be included in Request or specified separately in RequestHeaders or RequestHeadersString. If the headers are included in Request they will be parsed out whenever ReadRequest, ParseRequest, or ProcessRequest is invoked.
ResponseType Property (RNIFReceiver Module)
Requested response type. Available only in RNIF 2.0.
Syntax
public var responseType: RnifreceiverResponseTypes { get {...} }
public enum RnifreceiverResponseTypes: Int32 { case rtSync = 0 case rtAsync = 1 }
@property (nonatomic,readonly,assign,getter=responseType) int responseType; - (int)responseType;
Default Value
0
Remarks
This property tells the receiver which type of response the sender is expecting.
The following types of supported responses are:
rtSync | The response will be received on the same HTTP session as the initial request. |
rtAsync | The response will be received later. |
This property is only available in RNIF version 2.0.
This property is read-only.
RNIFVersion Property (RNIFReceiver Module)
The RNIF Standard Version used to generate this message.
Syntax
public var rnifVersion: RnifreceiverRNIFVersions { get {...} }
public enum RnifreceiverRNIFVersions: Int32 { case v1 = 0 case v2 = 1 }
@property (nonatomic,readonly,assign,getter=RNIFVersion) int RNIFVersion; - (int)RNIFVersion;
Default Value
0
Remarks
This property describes which standard version of RNIF was used to generate this message. Possible values are::
v1 | RosettaNet version 1.1 |
v2 | RosettaNet version 2.0 |
This property is read-only.
SecureTransportRequired Property (RNIFReceiver Module)
Indicates that security is required when forwarding this message.
Syntax
public var secureTransportRequired: Bool { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=secureTransportRequired,setter=setSecureTransportRequired:) BOOL secureTransportRequired; - (BOOL)secureTransportRequired; - (void)setSecureTransportRequired :(BOOL)newSecureTransportRequired;
Default Value
False
Remarks
This property is a boolean value which denotes whether or not security is required when forwarding this message. Since RosettaNet messages are business messages, secure transport is often required. See RNIFSender for more information on sending messages over a secure transport.
This property is a field of the delivery header.
ServiceContent Property (RNIFReceiver Module)
The PIP message data.
Syntax
public var serviceContent: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=serviceContent,setter=setServiceContent:) NSString* serviceContent; - (NSString*)serviceContent; - (void)setServiceContent :(NSString*)newServiceContent;
Default Value
""
Remarks
The ServiceContent property contains the PIP message data. This is the body of the message which contains the request, action, or reply being sent from one business process to another.
There are specific formats to which this data must adhere. These formats are specified by the RosettaNet community in the form of Partner Interface Processes (PIPs). Each PIP instance also has an ID associated with it which is stored in the PIPInstanceId property.
ServiceHeaderXML Property (RNIFReceiver Module)
The complete XML data from the Service Header.
Syntax
public var serviceHeaderXML: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=serviceHeaderXML,setter=setServiceHeaderXML:) NSString* serviceHeaderXML; - (NSString*)serviceHeaderXML; - (void)setServiceHeaderXML :(NSString*)newServiceHeaderXML;
Default Value
""
Remarks
ServiceHeaderXML contains the full XML data of the RosettaNet message Service Header. This header includes information about the contents of the RosettaNet message itself. It contains information about the type of message, the PIP used to create the service content, and the various attachments as well as information about the business partners involved in the transaction, such as each entity's role.
This property is an aggregate property containing XML either generated from or parsed into various other properties of the class. If the value of a related property changes, this property will be updated the next time it is polled and the current valid XML will be returned. When this property is set directly, the class will automatically parse the XML and validate the content of the header to ensure that all required fields contain appropriate values. Once this property has been set and validated, the following properties will be populated:
- ActionCode
- ActionMessage
- ActionMessageStandardName
- ActionMessageStandardVersion
- Attachments
- FromRole
- FromService
- OriginalActionCode
- OriginalMessageStandardName
- OriginalMessageStandardVersion
- OriginalMessageTrackingId
- PartnerId
- PartnerKnown
- PartnerLocation
- PartnerPIPBindingId
- PartnerURL
- PIPCode
- PIPInstanceId
- PIPVersion
- QOSSpecifications
- ReplyMessage
- SignalCode
- SignalMessage
- GlobalUsageCode
- SignalVersion
- ToRole
- ToService
SignalCode Property (RNIFReceiver Module)
The code for this signal.
Syntax
public var signalCode: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signalCode,setter=setSignalCode:) NSString* signalCode; - (NSString*)signalCode; - (void)setSignalCode :(NSString*)newSignalCode;
Default Value
""
Remarks
This is the code for the signal message received. This property is only set if the message is a signal. The code denotes what type of signal is being received, or sent.
SignalMessage Property (RNIFReceiver Module)
Whether or not this message is a signal.
Syntax
public var signalMessage: Bool { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signalMessage,setter=setSignalMessage:) BOOL signalMessage; - (BOOL)signalMessage; - (void)setSignalMessage :(BOOL)newSignalMessage;
Default Value
False
Remarks
SignalMessage is a boolean value indicating whether or not the message is a signal. Signals do not contain content that is of business nature. Instead, they are simply acknowledgments to business actions.
RNIF 2.0 specifies two types of signals: a positive, and a negative. A positive signal has all of the properties of a valid RosettaNet action message, however it is simply an acknowledgement of receipt of a valid Business Action message. A negative signal is an acknowledgement sent to notify the originating entity of an error. In RNIF 2.0, there is only one type of exception message, as opposed to the three types in RNIF 1.1.
NOTE: only Business Actions may be acknowledged, Signals cannot.
This property is a field of the service header.
SignalVersion Property (RNIFReceiver Module)
The version of this signal.
Syntax
public var signalVersion: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signalVersion,setter=setSignalVersion:) NSString* signalVersion; - (NSString*)signalVersion; - (void)setSignalVersion :(NSString*)newSignalVersion;
Default Value
""
Remarks
This is the version for the signal message received. This property is only set if the message is a signal. The version denotes what version of signal is being received, or sent.
SignerCertEffectiveDate Property (RNIFReceiver Module)
This is the date on which this certificate becomes valid.
Syntax
public var signerCertEffectiveDate: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertEffectiveDate) NSString* signerCertEffectiveDate; - (NSString*)signerCertEffectiveDate;
Default Value
""
Remarks
This is the date on which this certificate becomes valid. Before this date, it is not valid. The following example illustrates the format of an encoded date:
23-Jan-2000 15:00:00.
This property is read-only.
SignerCertEncoded Property (RNIFReceiver Module)
This is the certificate (PEM/base64 encoded).
Syntax
public var signerCertEncoded: String { get {...} set {...} }
public var signerCertEncodedB: Data { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signerCertEncoded,setter=setSignerCertEncoded:) NSString* signerCertEncoded; - (NSString*)signerCertEncoded; - (void)setSignerCertEncoded :(NSString*)newSignerCertEncoded; @property (nonatomic,readwrite,assign,getter=signerCertEncodedB,setter=setSignerCertEncodedB:) NSData* signerCertEncodedB; - (NSData*)signerCertEncodedB; - (void)setSignerCertEncodedB :(NSData*)newSignerCertEncoded;
Default Value
""
Remarks
This is the certificate (PEM/base64 encoded). This property is used to assign a specific certificate. The SignerCertStore and SignerCertSubject properties also may be used to specify a certificate.
When SignerCertEncoded is set, a search is initiated in the current SignerCertStore for the private key of the certificate. If the key is found, SignerCertSubject is updated to reflect the full subject of the selected certificate; otherwise, SignerCertSubject is set to an empty string.
If an error occurs when setting this property an error will not be thrown. This property has a related method which will throw an error:
public func setSignerCertEncodedB(signerCertEncoded: Data) throws public func setSignerCertEncoded(signerCertEncoded: String) throws
SignerCertExpirationDate Property (RNIFReceiver Module)
This is the date the certificate expires.
Syntax
public var signerCertExpirationDate: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertExpirationDate) NSString* signerCertExpirationDate; - (NSString*)signerCertExpirationDate;
Default Value
""
Remarks
This is the date the certificate expires. After this date, the certificate will no longer be valid. The following example illustrates the format of an encoded date:
23-Jan-2001 15:00:00.
This property is read-only.
SignerCertExtendedKeyUsage Property (RNIFReceiver Module)
This is a comma-delimited list of extended key usage identifiers.
Syntax
public var signerCertExtendedKeyUsage: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signerCertExtendedKeyUsage,setter=setSignerCertExtendedKeyUsage:) NSString* signerCertExtendedKeyUsage; - (NSString*)signerCertExtendedKeyUsage; - (void)setSignerCertExtendedKeyUsage :(NSString*)newSignerCertExtendedKeyUsage;
Default Value
""
Remarks
This is a comma-delimited list of extended key usage identifiers. These are the same as ASN.1 object identifiers (OIDs).
SignerCertFingerprint Property (RNIFReceiver Module)
This is the hex-encoded, 16-byte MD5 fingerprint of the certificate.
Syntax
public var signerCertFingerprint: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertFingerprint) NSString* signerCertFingerprint; - (NSString*)signerCertFingerprint;
Default Value
""
Remarks
This is the hex-encoded, 16-byte MD5 fingerprint of the certificate.
The following example illustrates the format: bc:2a:72:af:fe:58:17:43:7a:5f:ba:5a:7c:90:f7:02
This property is read-only.
SignerCertFingerprintSHA1 Property (RNIFReceiver Module)
This is the hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
Syntax
public var signerCertFingerprintSHA1: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertFingerprintSHA1) NSString* signerCertFingerprintSHA1; - (NSString*)signerCertFingerprintSHA1;
Default Value
""
Remarks
This is the hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
The following example illustrates the format: 30:7b:fa:38:65:83:ff:da:b4:4e:07:3f:17:b8:a4:ed:80:be:ff:84
This property is read-only.
SignerCertFingerprintSHA256 Property (RNIFReceiver Module)
This is the hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
Syntax
public var signerCertFingerprintSHA256: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertFingerprintSHA256) NSString* signerCertFingerprintSHA256; - (NSString*)signerCertFingerprintSHA256;
Default Value
""
Remarks
This is the hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
The following example illustrates the format: 6a:80:5c:33:a9:43:ea:b0:96:12:8a:64:96:30:ef:4a:8a:96:86:ce:f4:c7:be:10:24:8e:2b:60:9e:f3:59:53
This property is read-only.
SignerCertIssuer Property (RNIFReceiver Module)
This is the issuer of the certificate.
Syntax
public var signerCertIssuer: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertIssuer) NSString* signerCertIssuer; - (NSString*)signerCertIssuer;
Default Value
""
Remarks
This is the issuer of the certificate. This property contains a string representation of the name of the issuing authority for the certificate.
This property is read-only.
SignerCertKeyPassword Property (RNIFReceiver Module)
This is the password for the certificate's private key (if any).
Syntax
public var signerCertKeyPassword: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signerCertKeyPassword,setter=setSignerCertKeyPassword:) NSString* signerCertKeyPassword; - (NSString*)signerCertKeyPassword; - (void)setSignerCertKeyPassword :(NSString*)newSignerCertKeyPassword;
Default Value
""
Remarks
This is the password for the certificate's private key (if any).
Some certificate stores may individually protect certificates' private keys, separate from the standard protection offered by the SignerCertStorePassword. SignerCertKeyPassword. This field can be used to read such password-protected private keys.
Note: this property defaults to the value of SignerCertStorePassword. To clear it, you must set the property to the empty string (""). It can be set at any time, but when the private key's password is different from the store's password, then it must be set before calling SignerCertPrivateKey.
SignerCertPrivateKey Property (RNIFReceiver Module)
This is the private key of the certificate (if available).
Syntax
public var signerCertPrivateKey: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertPrivateKey) NSString* signerCertPrivateKey; - (NSString*)signerCertPrivateKey;
Default Value
""
Remarks
This is the private key of the certificate (if available). The key is provided as PEM/Base64-encoded data.
Note: The SignerCertPrivateKey may be available but not exportable. In this case, SignerCertPrivateKey returns an empty string.
This property is read-only.
SignerCertPrivateKeyAvailable Property (RNIFReceiver Module)
This property shows whether a PrivateKey is available for the selected certificate.
Syntax
public var signerCertPrivateKeyAvailable: Bool { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertPrivateKeyAvailable) BOOL signerCertPrivateKeyAvailable; - (BOOL)signerCertPrivateKeyAvailable;
Default Value
False
Remarks
This property shows whether a SignerCertPrivateKey is available for the selected certificate. If SignerCertPrivateKeyAvailable is True, the certificate may be used for authentication purposes (e.g., server authentication).
This property is read-only.
SignerCertPrivateKeyContainer Property (RNIFReceiver Module)
This is the name of the PrivateKey container for the certificate (if available).
Syntax
public var signerCertPrivateKeyContainer: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertPrivateKeyContainer) NSString* signerCertPrivateKeyContainer; - (NSString*)signerCertPrivateKeyContainer;
Default Value
""
Remarks
This is the name of the SignerCertPrivateKey container for the certificate (if available). This functionality is available only on Windows platforms.
This property is read-only.
SignerCertPublicKey Property (RNIFReceiver Module)
This is the public key of the certificate.
Syntax
public var signerCertPublicKey: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertPublicKey) NSString* signerCertPublicKey; - (NSString*)signerCertPublicKey;
Default Value
""
Remarks
This is the public key of the certificate. The key is provided as PEM/Base64-encoded data.
This property is read-only.
SignerCertPublicKeyAlgorithm Property (RNIFReceiver Module)
This property contains the textual description of the certificate's public key algorithm.
Syntax
public var signerCertPublicKeyAlgorithm: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signerCertPublicKeyAlgorithm,setter=setSignerCertPublicKeyAlgorithm:) NSString* signerCertPublicKeyAlgorithm; - (NSString*)signerCertPublicKeyAlgorithm; - (void)setSignerCertPublicKeyAlgorithm :(NSString*)newSignerCertPublicKeyAlgorithm;
Default Value
""
Remarks
This property contains the textual description of the certificate's public key algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_DH") or an object identifier (OID) string representing the algorithm.
SignerCertPublicKeyLength Property (RNIFReceiver Module)
This is the length of the certificate's public key (in bits).
Syntax
public var signerCertPublicKeyLength: Int32 { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertPublicKeyLength) int signerCertPublicKeyLength; - (int)signerCertPublicKeyLength;
Default Value
0
Remarks
This is the length of the certificate's public key (in bits). Common values are 512, 1024, and 2048.
This property is read-only.
SignerCertSerialNumber Property (RNIFReceiver Module)
This is the serial number of the certificate encoded as a string.
Syntax
public var signerCertSerialNumber: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertSerialNumber) NSString* signerCertSerialNumber; - (NSString*)signerCertSerialNumber;
Default Value
""
Remarks
This is the serial number of the certificate encoded as a string. The number is encoded as a series of hexadecimal digits, with each pair representing a byte of the serial number.
This property is read-only.
SignerCertSignatureAlgorithm Property (RNIFReceiver Module)
The property contains the text description of the certificate's signature algorithm.
Syntax
public var signerCertSignatureAlgorithm: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertSignatureAlgorithm) NSString* signerCertSignatureAlgorithm; - (NSString*)signerCertSignatureAlgorithm;
Default Value
""
Remarks
The property contains the text description of the certificate's signature algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_MD5RSA") or an object identifier (OID) string representing the algorithm.
This property is read-only.
SignerCertStore Property (RNIFReceiver Module)
This is the name of the certificate store for the client certificate.
Syntax
public var signerCertStore: String { get {...} set {...} }
public var signerCertStoreB: Data { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signerCertStore,setter=setSignerCertStore:) NSString* signerCertStore; - (NSString*)signerCertStore; - (void)setSignerCertStore :(NSString*)newSignerCertStore; @property (nonatomic,readwrite,assign,getter=signerCertStoreB,setter=setSignerCertStoreB:) NSData* signerCertStoreB; - (NSData*)signerCertStoreB; - (void)setSignerCertStoreB :(NSData*)newSignerCertStore;
Default Value
"MY"
Remarks
This is the name of the certificate store for the client certificate.
The SignerCertStoreType property denotes the type of the certificate store specified by SignerCertStore. If the store is password protected, specify the password in SignerCertStorePassword.
SignerCertStore is used in conjunction with the SignerCertSubject property to specify client certificates. If SignerCertStore has a value, and SignerCertSubject or SignerCertEncoded is set, a search for a certificate is initiated. Please see the SignerCertSubject property for details.
Designations of certificate stores are platform-dependent.
The following are designations of the most common User and Machine certificate stores in Windows:
MY | A certificate store holding personal certificates with their associated private keys. |
CA | Certifying authority certificates. |
ROOT | Root certificates. |
When the certificate store type is PFXFile, this property must be set to the name of the file. When the type is PFXBlob, the property must be set to the binary contents of a PFX file (i.e. PKCS12 certificate store).
SignerCertStorePassword Property (RNIFReceiver Module)
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Syntax
public var signerCertStorePassword: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signerCertStorePassword,setter=setSignerCertStorePassword:) NSString* signerCertStorePassword; - (NSString*)signerCertStorePassword; - (void)setSignerCertStorePassword :(NSString*)newSignerCertStorePassword;
Default Value
""
Remarks
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
SignerCertStoreType Property (RNIFReceiver Module)
This is the type of certificate store for this certificate.
Syntax
public var signerCertStoreType: RnifreceiverSignerCertStoreTypes { get {...} set {...} }
public enum RnifreceiverSignerCertStoreTypes: Int32 { case cstUser = 0 case cstMachine = 1 case cstPFXFile = 2 case cstPFXBlob = 3 case cstJKSFile = 4 case cstJKSBlob = 5 case cstPEMKeyFile = 6 case cstPEMKeyBlob = 7 case cstPublicKeyFile = 8 case cstPublicKeyBlob = 9 case cstSSHPublicKeyBlob = 10 case cstP7BFile = 11 case cstP7BBlob = 12 case cstSSHPublicKeyFile = 13 case cstPPKFile = 14 case cstPPKBlob = 15 case cstXMLFile = 16 case cstXMLBlob = 17 case cstJWKFile = 18 case cstJWKBlob = 19 case cstSecurityKey = 20 case cstBCFKSFile = 21 case cstBCFKSBlob = 22 case cstAuto = 99 }
@property (nonatomic,readwrite,assign,getter=signerCertStoreType,setter=setSignerCertStoreType:) int signerCertStoreType; - (int)signerCertStoreType; - (void)setSignerCertStoreType :(int)newSignerCertStoreType;
Default Value
0
Remarks
This is the type of certificate store for this certificate.
The class supports both public and private keys in a variety of formats. When the cstAuto value is used the class will automatically determine the type. This property can take one of the following values:
0 (cstUser - default) | For Windows, this specifies that the certificate store is a certificate store owned by the current user. Note: this store type is not available in Java. |
1 (cstMachine) | For Windows, this specifies that the certificate store is a machine store. Note: this store type is not available in Java. |
2 (cstPFXFile) | The certificate store is the name of a PFX (PKCS12) file containing certificates. |
3 (cstPFXBlob) | The certificate store is a string (binary or base64-encoded) representing a certificate store in PFX (PKCS12) format. |
4 (cstJKSFile) | The certificate store is the name of a Java Key Store (JKS) file containing certificates. Note: this store type is only available in Java. |
5 (cstJKSBlob) | The certificate store is a string (binary or base64-encoded) representing a certificate store in Java Key Store (JKS) format. Note: this store type is only available in Java. |
6 (cstPEMKeyFile) | The certificate store is the name of a PEM-encoded file that contains a private key and an optional certificate. |
7 (cstPEMKeyBlob) | The certificate store is a string (binary or base64-encoded) that contains a private key and an optional certificate. |
8 (cstPublicKeyFile) | The certificate store is the name of a file that contains a PEM- or DER-encoded public key certificate. |
9 (cstPublicKeyBlob) | The certificate store is a string (binary or base64-encoded) that contains a PEM- or DER-encoded public key certificate. |
10 (cstSSHPublicKeyBlob) | The certificate store is a string (binary or base64-encoded) that contains an SSH-style public key. |
11 (cstP7BFile) | The certificate store is the name of a PKCS7 file containing certificates. |
12 (cstP7BBlob) | The certificate store is a string (binary) representing a certificate store in PKCS7 format. |
13 (cstSSHPublicKeyFile) | The certificate store is the name of a file that contains an SSH-style public key. |
14 (cstPPKFile) | The certificate store is the name of a file that contains a PPK (PuTTY Private Key). |
15 (cstPPKBlob) | The certificate store is a string (binary) that contains a PPK (PuTTY Private Key). |
16 (cstXMLFile) | The certificate store is the name of a file that contains a certificate in XML format. |
17 (cstXMLBlob) | The certificate store is a string that contains a certificate in XML format. |
18 (cstJWKFile) | The certificate store is the name of a file that contains a JWK (JSON Web Key). |
19 (cstJWKBlob) | The certificate store is a string that contains a JWK (JSON Web Key). |
20 (cstSecurityKey) | The certificate is present on a physical security key accessible via a PKCS11 interface.
To use a security key the necessary data must first be collected using the CertMgr class. The ListStoreCertificates method may be called after setting CertStoreType to cstSecurityKey, CertStorePassword to the PIN, and CertStore to the full path of the PKCS11 dll. The certificate information returned in the CertList event's CertEncoded parameter may be saved for later use. When using a certificate, pass the previously saved security key information as the SignerCertStore and set SignerCertStorePassword to the PIN. Code Example: SSH Authentication with Security Key
|
21 (cstBCFKSFile) | The certificate store is the name of a file that contains a BCFKS (Bouncy Castle FIPS Key Store). Note: this store type is only available in Java and .NET. |
22 (cstBCFKSBlob) | The certificate store is a string (binary or base64-encoded) representing a certificate store in BCFKS (Bouncy Castle FIPS Key Store) format. Note: this store type is only available in Java and .NET. |
99 (cstAuto) | The store type is automatically detected from the input data. This setting may be used with both public and private keys and can detect any of the supported formats automatically. |
SignerCertSubject Property (RNIFReceiver Module)
This is the subject of the certificate used for client authentication.
Syntax
public var signerCertSubject: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signerCertSubject,setter=setSignerCertSubject:) NSString* signerCertSubject; - (NSString*)signerCertSubject; - (void)setSignerCertSubject :(NSString*)newSignerCertSubject;
Default Value
""
Remarks
This is the subject of the certificate used for client authentication.
This property must be set after all other certificate properites are set. When this property is set, a search is performed in the current certificate store certificate with matching subject.
If a matching certificate is found, the property is set to the full subject of the matching certificate.
If an exact match is not found, the store is searched for subjects containing the value of the property.
If a match is still not found, the property is set to an empty string, and no certificate is selected.
The special value "*" picks a random certificate in the certificate store.
The certificate subject is a comma separated list of distinguished name fields and values. For instance "CN=www.server.com, OU=test, C=US, E=support@nsoftware.com". Common fields and their meanings are displayed below.
Field | Meaning |
CN | Common Name. This is commonly a host name like www.server.com. |
O | Organization |
OU | Organizational Unit |
L | Locality |
S | State |
C | Country |
E | Email Address |
If a field value contains a comma it must be quoted.
If an error occurs when setting this property an error will not be thrown. This property has a related method which will throw an error:
public func setSignerCertSubject(signerCertSubject: String) throws
SignerCertSubjectAltNames Property (RNIFReceiver Module)
This property contains comma-separated lists of alternative subject names for the certificate.
Syntax
public var signerCertSubjectAltNames: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertSubjectAltNames) NSString* signerCertSubjectAltNames; - (NSString*)signerCertSubjectAltNames;
Default Value
""
Remarks
This property contains comma-separated lists of alternative subject names for the certificate.
This property is read-only.
SignerCertThumbprintMD5 Property (RNIFReceiver Module)
This property contains the MD5 hash of the certificate.
Syntax
public var signerCertThumbprintMD5: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertThumbprintMD5) NSString* signerCertThumbprintMD5; - (NSString*)signerCertThumbprintMD5;
Default Value
""
Remarks
This property contains the MD5 hash of the certificate. If the hash does not already exist, it is computed.
This property is read-only.
SignerCertThumbprintSHA1 Property (RNIFReceiver Module)
This property contains the SHA-1 hash of the certificate.
Syntax
public var signerCertThumbprintSHA1: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertThumbprintSHA1) NSString* signerCertThumbprintSHA1; - (NSString*)signerCertThumbprintSHA1;
Default Value
""
Remarks
This property contains the SHA-1 hash of the certificate. If the hash does not already exist, it is computed.
This property is read-only.
SignerCertThumbprintSHA256 Property (RNIFReceiver Module)
This property contains the SHA-256 hash of the certificate.
Syntax
public var signerCertThumbprintSHA256: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertThumbprintSHA256) NSString* signerCertThumbprintSHA256; - (NSString*)signerCertThumbprintSHA256;
Default Value
""
Remarks
This property contains the SHA-256 hash of the certificate. If the hash does not already exist, it is computed.
This property is read-only.
SignerCertUsage Property (RNIFReceiver Module)
This property contains the text description of UsageFlags .
Syntax
public var signerCertUsage: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signerCertUsage,setter=setSignerCertUsage:) NSString* signerCertUsage; - (NSString*)signerCertUsage; - (void)setSignerCertUsage :(NSString*)newSignerCertUsage;
Default Value
""
Remarks
This property contains the text description of SignerCertUsageFlags.
This value will be of one or more of the following strings and will be separated by commas:
- Digital Signatures
- Key Authentication
- Key Encryption
- Data Encryption
- Key Agreement
- Certificate Signing
- Key Signing
If the provider is OpenSSL, the value is a comma-separated list of X.509 certificate extension names.
SignerCertUsageFlags Property (RNIFReceiver Module)
This property contains the flags that show intended use for the certificate.
Syntax
public var signerCertUsageFlags: Int32 { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=signerCertUsageFlags,setter=setSignerCertUsageFlags:) int signerCertUsageFlags; - (int)signerCertUsageFlags; - (void)setSignerCertUsageFlags :(int)newSignerCertUsageFlags;
Default Value
0
Remarks
This property contains the flags that show intended use for the certificate. The value of SignerCertUsageFlags is a combination of the following flags:
0x80 | Digital Signatures |
0x40 | Key Authentication |
0x20 | Key Encryption |
0x10 | Data Encryption |
0x08 | Key Agreement |
0x04 | Certificate Signing |
0x02 | Key Signing |
Please see the SignerCertUsage property for a text representation of SignerCertUsageFlags.
This functionality currently is not available when the provider is OpenSSL.
SignerCertVersion Property (RNIFReceiver Module)
This property contains the certificate's version number.
Syntax
public var signerCertVersion: String { get {...} }
@property (nonatomic,readonly,assign,getter=signerCertVersion) NSString* signerCertVersion; - (NSString*)signerCertVersion;
Default Value
""
Remarks
This property contains the certificate's version number. The possible values are the strings "V1", "V2", and "V3".
This property is read-only.
StandardName Property (RNIFReceiver Module)
The name of the standard used to create this message.
Syntax
public var standardName: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=standardName,setter=setStandardName:) NSString* standardName; - (NSString*)standardName; - (void)setStandardName :(NSString*)newStandardName;
Default Value
""
Remarks
This property is the name of the standard which was used to create the message. In this case, we are working with RosettaNet, so RosettaNet will always be the StandardName, unless this specification is used to send a non-RosettaNet type message. The type name and version must be specified when this occurs.
This property is a field of the preamble.
StandardVersion Property (RNIFReceiver Module)
The version of the standard used to create this message.
Syntax
public var standardVersion: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=standardVersion,setter=setStandardVersion:) NSString* standardVersion; - (NSString*)standardVersion; - (void)setStandardVersion :(NSString*)newStandardVersion;
Default Value
""
Remarks
StandardVersion describes the version of the standard used to create this message. In this case, the standard being used is RosettaNet. Therefore, the version will be which version of RosettaNet the sender is using.
This property is a field of the preamble.
ToRole Property (RNIFReceiver Module)
The role of the entity receiving this message.
Syntax
public var toRole: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=toRole,setter=setToRole:) NSString* toRole; - (NSString*)toRole; - (void)setToRole :(NSString*)newToRole;
Default Value
""
Remarks
This describes what role the process receiving this message plays in the business model. This may be a one-word description, e.g. "Seller".
This property is a field of the service header.
ToService Property (RNIFReceiver Module)
The service for which this message is bound.
Syntax
public var toService: String { get {...} set {...} }
@property (nonatomic,readwrite,assign,getter=toService,setter=setToService:) NSString* toService; - (NSString*)toService; - (void)setToService :(NSString*)newToService;
Default Value
""
Remarks
This property describes the type of service that is being provided by the receiver of this message. This can be a short description of the service being provided, e.g. "Seller Service".
This property is a field of the service header.
Config Method (RNIFReceiver Module)
Sets or retrieves a configuration setting.
Syntax
- (NSString*)config:(NSString*)configurationString;
Remarks
Config is a generic method available in every class. It is used to set and retrieve configuration settings for the class.
These settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the Config method.
To set a configuration setting named PROPERTY, you must call Config("PROPERTY=VALUE"), where VALUE is the value of the setting expressed as a string. For boolean values, use the strings "True", "False", "0", "1", "Yes", or "No" (case does not matter).
To read (query) the value of a configuration setting, you must call Config("PROPERTY"). The value will be returned as a string.
ParseHeaders Method (RNIFReceiver Module)
Processes the headers, and populates the appropriate properties.
Syntax
public func parseHeaders() throws -> Void
- (void)parseHeaders;
Remarks
When this method is called, the headers are parsed from the HTTP request. Based on the headers, the class will set the RNIFVersion and ResponseType properties. After ParseHeaders is called, these two properties should be polled to determine how the message should be handled.
ParseRequest Method (RNIFReceiver Module)
Parses the MIME message and determines the Message .
Syntax
public func parseRequest() throws -> Void
- (void)parseRequest;
Remarks
Once the message is acquired from the sender and the RNIFVersion and ResponseType properties have been parsed out, this method should be called to MIME decode the RosettaNet message, verify the signature if present, and decrypt the service content if needed. The PreambleHeaderXML, DeliveryHeaderXML, ServiceHeaderXML and ServiceContent properties are all populated, as well as the attachment properties, if any exist.
NOTE: before calling this method, the message must be read from the server via a call to ReadRequest.
ReadRequest Method (RNIFReceiver Module)
Reads the RNIF request from the given HTTP servlet request.
Syntax
public func readRequest() throws -> Void
- (void)readRequest;
Remarks
This method acquires the request from the HTTP servlet. Once this is done, ReadRequest then calls ParseHeaders, which parses the headers for the acquired message.
RequestHeader Method (RNIFReceiver Module)
Gets the specified header from the HTTP request.
Syntax
- (NSString*)requestHeader:(NSString*)header;
Remarks
This method is invoked to return a specific header from the HTTP request. Header is the name of a header from the incoming HTTP request. The method will return either the value of that header or the empty string if the header did not exist.
Reset Method (RNIFReceiver Module)
This property is used to reset all attributes of the Rnifreceiver instance.
Syntax
public func reset() throws -> Void
- (void)reset;
Remarks
Reset is used to reset all attributes of the Rnifreceiver instance including the headers, attachments, etc. to their default values. This may be useful when multiple messages need to be created.
NOTE: The application should always call Reset and set all message properties to valid value before sending a response message.
SendResponse Method (RNIFReceiver Module)
Optional. Acknowledges the incoming request.
Syntax
public func sendResponse() throws -> Void
- (void)sendResponse;
Remarks
This sends a signal to the client. The signal may be a receipt of acknowledgement or a notification of failure. SendResponse will send the response message synchronously over the original HTTP connection. If an asynchronous response is requested by the client or required by the PIP, you should use the RNIFSender.
NOTE: This method does not create the RosettaNet acknowledgement receipt or notification of failure, it simply sends it. You must create the response message and set it via the ServiceContent, along with setting the headers to valid values, before you calling this method.
Error Event (RNIFReceiver Module)
Information about errors during data delivery.
Syntax
- (void)onError:(int)errorCode :(NSString*)description;
Remarks
The Error event is fired in case of exceptional conditions during message processing. Normally the class .
ErrorCode contains an error code and Description contains a textual description of the error. For a list of valid error codes and their descriptions, please refer to the Error Codes section.
Header Type
This is an HTTP header as it is received from the server.
Remarks
When a header is received through a Header event, it is parsed into a Header type. This type contains a , and its corresponding .
Fields
field String |
This property contains the name of the HTTP Header (this is the same case as it is delivered). |
value String |
This property contains the Header contents. |
Constructors
public init()
public init(field: , value: )
QOSSpecification Type
A name-value pair defining a quality of service.
Remarks
Version 2.0 of the RosettaNet Implementation Framework introduced a set of Quality of Service (QOS) elements to ensure future backward compatibility.
Fields
code String |
is a string representing a quality of service measurement category. |
value String |
is a string that defines the constraints for the category in . |
Constructors
public init()
public init(code: , value: )
RNIFAttachment Type
This describes the file being attached.
Remarks
Information about the file's location that is being attached to the message is contained here.
Fields
dataB Data |
contains the raw data of the current attachment. If is set, the value in will be used to specify the name of the attachment when generating messages to be sent. When receiving, polling This property will cause the attachment to be parsed out of the transmitted MIME entity to memory rather than being parsed to a file. |
data String |
contains the raw data of the current attachment. If is set, the value in will be used to specify the name of the attachment when generating messages to be sent. When receiving, polling This property will cause the attachment to be parsed out of the transmitted MIME entity to memory rather than being parsed to a file. |
description_ String |
contains descriptions for this attachment. These descriptions are human-readable strings and may set to any arbitrary value. These descriptions should play no role in how the message is processed or interpreted. |
filename String |
is the name of the file containing the decoded data of the current attachment. When sending messages, this value tells the class where to find the file and is used in accordance with MIME encoding rules to indicate the filename to be used by the receiving RNIF entity when parsing the attachments. When receiving, polling This property will cause the attachment to be parsed out of the transmitted MIME entity to the filename indicated by the MIME encoding rules. When the property returns, the file will be written to the path indicated. |
id String |
is a unique content-identifier used within the RosettaNet message to internally reference the attachments. Because these identifiers are used to reference the attachments, each attachment must have a unique identifier, but they only need to be unique within the scope of the current message. These values may take the form of a URI. |
mimeType String |
is a value indicating how the RNIFAttachment should be interpreted. Valid MIME types include, but are not limited to, the following:
|
Constructors
public init()
public init(filename: )
public init(filename: , id: )
public init(filename: , id: , description: )
public init(filename: , id: , description: , mIMEType: )
Config Settings (RNIFReceiver Module)
The class accepts one or more of the following configuration settings. Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the Config method.RNIFReceiver Config Settings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AttachmentOutputPath: Specifies a path on disk to which attachments will be saved.This setting specifies a path on disk to which attachments will be saved when processing incoming messages. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ExpectedVersion:
The RNIF document version that the RNIFReceiver is expecting to receive.This configuration option allow you to explicitly define the RNIF version of the document that
you are expecting to receive. If this value is set, the component will not attempt to parse
the RNIF version from the received headers and will attempt to process the received document
as an RNIF document of the version specified in this configuration option.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FromPartnerClassificationCode: Code identifying the sending partner's function in the supply chain. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GlobalProcessCode: Business process identifier e.g. 'Manage Product Subscriptions'. This code is the name of a PIP specification document. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTPStatusCode: The HTTP status code to send in the response.If set, this defines the HTTP status code returned by the class when SendResponse is called. By default the class will return a HTTP status code of 200. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MessageDigest: The base-64 encoded hash of the received data.This configuration setting will return the base-64 encoded hash of the received data. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RequireEncryption: Whether encryption is required when processing received messages.This setting may be set to True to require that received messages are encrypted. When True if a message is received that is not encrypted the class will throw an exception. The default value is False. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RequireSignature: Whether a signature is required when processing received messages.This setting may be set to True to require that received messages are signed. When True if a message is received that is not signed the class will throw an exception. The default value is False. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SignatureAlgorithm: Signature algorithm to be used in outgoing messages. Signature Algorithm can be set to md5 or sha1, to indicate the preferred signing algorithm. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ToPartnerClassificationCode: Code identifying the receiving partner's function in the supply chain. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TransactionCode: Service transaction dialog. The code is the name of the business activity and the transaction dialog in the PIP specification document. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TransactionId: A unique alpha-numeric identifier that represents a specific instance of an business process, business transaction, business action or business signal. The instance identifier must be unique for a particular instance of a business process, business transaction, business action and business signal. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TransferredData: The full body of the incoming request.After calling ParseRequest this will contain the full body of the incoming request. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TransferredHeaders: The HTTP headers of the incoming request.After calling ParseRequest this will contain the full HTTP headers of the incoming request. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Base Config Settings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BuildInfo: Information about the product's build.When queried, this setting will return a string containing information about the product's build. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CodePage:
The system code page used for Unicode to Multibyte translations.The default code page is Unicode UTF-8 (65001).
The following is a list of valid code page identifiers:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LicenseInfo:
Information about the current license.When queried, this setting will return a string containing information about the license this instance of a class is using. It will return the following information:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UseInternalSecurityAPI:
Tells the class whether or not to use the system security libraries or an internal implementation.
When set to , the class will use the system security libraries by default to perform cryptographic functions where applicable.
Setting this setting to tells the class to use the internal implementation instead of using the system security libraries. This setting is set to by default on all platforms. |
Trappable Errors (RNIFReceiver Module)
SMIME Errors
10191 Invalid index (RecipientIndex). | |
10192 Message decoding error (code). | |
10193 Unexpected message type. | |
10194 Unsupported hashing/signing algorithm. | |
10195 The message does not have any signers. | |
10196 The message signature could not be verified. | |
10197 Could not locate a suitable decryption certificate. | |
10198 The signer certificate could not be found. | |
10199 No signing certificate was supplied for signing the message. | |
10201 The specified certificate was not the one required. | |
10202 The specified certificate could not be found. | |
10221 Could not acquire CSP. | |
10222 Type validation error. | |
10223 Unsupported key size. | |
10224 Unrecognized Content-Type object identifier. | |
10225 Unrecognized public key format. | |
10226 No choices specified. | |
10228 Must specify output stream. | |
10280 Invalid part index. | |
10281 Unknown MIME type. | |
10283 No MIME-boundary found. | |
10280 Error decoding certificate. |
XML Errors
101 Invalid attribute index. | |
102 No attributes available. | |
103 Invalid namespace index. | |
104 No namespaces available. | |
105 Invalid element index. | |
106 No elements available. | |
107 Attribute does not exist. | |
201 Unbalanced element tag. | |
202 Unknown element prefix (can't find namespace). | |
203 Unknown attribute prefix (can't find namespace). | |
204 Invalid XML markup. | |
205 Invalid end state for parser. | |
206 Document contains unbalanced elements. | |
207 Invalid XPath. | |
208 No such child. | |
209 Top element does not match start of path. | |
210 DOM tree unavailable (set BuildDOM to true and reparse). | |
302 Can't open file. | |
401 Invalid XML would be generated. | |
402 An invalid XML name has been specified. |