Generate Profile Token (QsyGenPrfTkn) API


  Syntax for QsyGenPrfTkn:
 #include <qsyptkn.h>

 void QsyGenPrfTkn
        (unsigned char  *Profile_token,
         char           *User_profile_name,
         char           *User_password,
         int            *Time_out_interval,
         char           *Profile_token_type,
         void           *Error_code);

  Service Program: QSYPTKN

  Default Public Authority: *USE

  Threadsafe: Yes

The Generate Profile Token (QsyGenPrfTkn) API verifies that the caller has authority to generate a profile token for the requested profile and then generates a profile token. This profile token can be passed to one or more additional processes which can then use it to perform tasks on behalf of the authenticated user.

This API requires a special value to be specified for the user password parameter. If you need to validate a user password, see the Generate Profile Token Extended (QsyGenPrfTknE) API.

The Generate Profile Token API follows this process:


Authorities and Locks

API Public Authority
*USE
User profile authority
*USE
User Profile Lock
*LSRD

Required Parameter Group

Profile token
OUTPUT; CHAR(32)

The profile token that is generated.


User profile name
INPUT; CHAR(10)

The name of the user for which to generate the profile token.


User password
INPUT; CHAR(10)

The password value used to generate the profile token.

Only special values are allowed for this parameter. A special value must be a 10 character, blank padded value in CCSID 37.

One of the following special values must be specified:


Time out interval
INPUT; BINARY(4)

The time before the profile token times out.

You can specify one of the following values:


Profile token type
INPUT; CHAR(1)

The type of the profile token to be generated.

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 ]