JoltCheckAuthenticationLevel Function

Action

Retrieves the authentication level set by the TUXEDO administrator. The authentication level determines which attributes of the JoltSessionAttributes object must necessarily be set.

Include file

Jolt.bdh

Syntax

JoltCheckAuthenticationLevel( in hSessionAttr: number ): number;

Return value

Authentication level, one of the following:

  • NOAUTH. No authentication

  • APPASSWORD. User name, user role and application password required

  • USRPASSWORD. Like APPASSWORD, in addition the user password is required

Parameter Description
hSessionAttr Handle to a JoltSessionAttributes object that was created with JoltSessionAttributesNew

Example

var
  hSessionAttr: number;
 dcltrans
  transaction TInit
  var
    nLevel: number;
  begin
    JavaSetOption(JAVA_VERSION, JAVA_V11);
    JavaSetOption(JAVA_HOME, "c:/jdk1.1.7");
    JavaSetOption(JAVA_CLASSPATH, "c:/jdk1.1.7");
    JoltInit();    hSessionAttr := JoltSessionAttributesNew();
    JoltSetString(hSessionAttr, APPADDRESS, "//lab:8000");
        
    nLevel := JoltCheckAuthenticationLevel(hSessionAttr);
    if nLevel = NOAUTH then
      writeln("no authentication required");
    elseif nLevel = APPASSWORD then
      writeln("user name, user role and app password required");
    elseif nLevel = USRASSWORD then
      writeln("user name, user password, "
           "user role and app password required");

     end;
  end TInit; 

  transaction TShutdown
  begin
    JoltFreeObject(hSessionAttr);
  end TShutdown;

See also

Java: bea.jolt.JoltSessionAttributes class