Retrieve Keystore File Attributes (QC3RTVFA, Qc3RetrieveKeyStoreFileAtr) API


  Required Parameter Group:


 Service Program Name: QC3FARTV

 Default Public Authority: *USE

 Threadsafe: Yes

The Retrieve Keystore File Attributes (OPM, QC3RTVFA; ILE, Qc3RetrieveKeyStoreFileAtr) API returns for the specified keystore file the number of key records, the id of the master key used to encrypt the key values, the date and time the keystore file was created or last translated, and the translation status of the keys.

For more information about cryptographic services keystore, see Cryptographic services key management.


Authorities and Locks

Required file authority
*OBJOPR, *READ

Required library authority
*EXECUTE


Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The variable used to receive the information about the keystore file. You can specify the size of the area to be smaller than the format requested as long as you specify the length parameter correctly. As a result, the API returns only the data that the area can hold. The format of the information returned in the receiver variable is defined by the format parameter

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable. This value must be at least 8. The length of receiver variable parameter may be specified up to the allocated size of the receiver variable specified in the user program. If the length of receiver variable parameter specified is larger than the allocated size of the receiver variable, the results are not predictable.

Format
INPUT; CHAR(8)

The format of the data returned in the receiver variable.

The following value is allowed:


Qualified keystore file name
INPUT; CHAR(20)

The keystore file where the key is stored. The first 10 characters contain the file name. The second 10 characters contain the name of the library where the keystore file is located. You can use the following special values for the library name.


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Format of Receiver Variable

The following table describes the format of the receiver variable.

For detailed descriptions of the fields in this table, see Field Descriptions.


KSFA0100 Format



Field Descriptions

Bytes available. The number of bytes of data available to return in the receiver variable.

If the bytes available field is larger than the bytes returned field, all of the keystore file information will not be included in the receiver variable.

Bytes returned. The number of bytes of data returned in the receiver variable.

Date and time. The date and time the keystore file was last translated, or if never translated, the file creation date and time. The date and time field is in the YYYYMMDDHHMMSS format as follows:


Master key. The id of the master key that will be used to encrypt any future keys added to the keystore file.

Number of key records. The number of keys currently stored in the keystore file.

Reserved. Must be null (binary 0's).

Translation status. The translation status of the key values.



Error Messages




API introduced: V6R1

[ Back to top | Cryptographic Services APIs | APIs by category ]