![]() |
![]() |
|
|
Getting Security Data
For general-purpose client programs that are written to work with a variety of applications, the BEA Tuxedo system provides an ATMI function that enables a client to determine the level of security required by the ATMI application that the client is trying to join. This ATMI function, implemented as tpchkauth(3c) for C and TPCHKAUTH(3cbl) for COBOL, is designed to work with ATMI applications using default authentication and authorization. The tpchkauth() and TPCHKAUTH() functions can also be used in ATMI applications in which custom authentication and/or authorization is used. How they are used, however, depends on how the custom security features are implemented. For the most part, this discussion focuses on default authentication and authorization.
An application programmer writing in C uses tpchkauth() to check the ATMI application's security level before calling tpinit(3c), so that the client program can prompt for the application password and the user authentication data needed for the tpinit() call; tpchkauth() is called without arguments.
An application programmer writing in COBOL uses TPCHKAUTH() for the same purpose before calling TPINITIALIZE(3cbl). The syntax and functionality of TPCHKAUTH(3cbl) and TPINITIALIZE(3cbl) are the same as those of tpchkauth(3c) and tpinit(3c).
The tpchkauth() function (or TPCHKAUTH() routine) returns one of the following values.
See Also
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|