Retrieves the authentication level set by the TUXEDO administrator. The authentication level determines which attributes of the JoltSessionAttributes object must necessarily be set.
Jolt.bdh
JoltCheckAuthenticationLevel( in hSessionAttr: number ): number;
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 |
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;
Java: bea.jolt.JoltSessionAttributes class