Generate Profile Token From Profile Token (QSYGENFT, QsyGenPrfTknFromPrfTkn) API


  Required Parameter Group for QSYGENFT:


  Default Public Authority: *USE

  Threadsafe: Yes



  Syntax for QsyGenPrfTknFromPrfTkn:
 #include <qsyptkn.h>

 void QsyGenPrfTknFromPrfTkn
        (unsigned char  *New_profile_token,
         unsigned char  *From_profile_token,
         int            *Time_out_interval,
         char           *New_profile_token_type,
         void           *Error_code);

  Service Program: QSYPTKN

  Default Public Authority: *USE

  Threadsafe: Yes

The Generate Profile Token From Profile Token (OPM, QSYGENFT; ILE, QsyGenPrfTknFromPrfTkn) API generates a profile token using an existing profile token. The existing profile token must be a valid, multiple-use, regenerable profile token. The new profile token will represent the same user and group information as the original profile token.


Authorities and Locks

API Public Authority
*USE

Required Parameter Group

Profile token
OUTPUT; CHAR(32)

The profile token that is generated.

From profile token
INPUT; CHAR(32)

The multiple-use, regenerable profile token used to generate the new profile token.

Time out interval
INPUT; BINARY(4)

The time in seconds before the new profile token times out.

You can specify one of the following values:


New profile token type
INPUT; CHAR(1)

You can specify one of the following values:


Error code
I/O; CHAR(*)

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


Error Messages



API introduced: V4R5

[ Back to top | Security APIs | APIs by category ]