Joltsessionattributes methods, Checkauthenticationlevel, Clear – HP NonStop G-Series User Manual
Page 99
Occurs when the user tries to set a value to a get-only attribute, or to get a value from a set-only attribute.
java.lang.NoSuchFieldError.
Occurs when the user tries to set an attribute which is not one of the predefined attributes.
JoltSessionAttributes Methods
The following methods are used in conjunction with the JoltSessionAttributes class.
checkAuthenticationLevel and clear methods. These methods provide a means to retrieve the values set for
system access and to remove data.
●
get methods. The get attribute methods obtain the value of an attribute. If the attribute does not exist, the default
value is returned. The user sets the default.
●
set methods. These methods set the value of an attribute. If a value already exists, using the set method overwrites
the existing value. Unless otherwise specified, the set methods return no values.
●
These JoltSessionAttributes methods are described in the following sections.
checkAuthenticationLevel
Gets the authentication level set up by the TUXEDO administrator.
int checkAuthenticationLevel() throws SessionException;
Usage The authentication level determines which values are set to the JoltSession constructor parameters. This method
returns the authentication level specified in
You must set APPADDRESS before calling this method (refer to
Table 7-2).
describes the possible return values for the checkAuthenticationLevel method.
Table 7-1. Return Values for the checkAuthenticationLevel Method
Return Value
Description
NOAUTH
No authentication is required to access the system.
APPASSWORD
System authentication is required. Clients provide user name, user role,
and application password to authenticate the system.
USRPASSWORD System and application authentication are required to access the system.
Clients provide user name, user role, user password, and application
password to authenticate the system.
Throws
java.lang.IllegalAccessError.
Occurs when the user tries to set a value to a get-only attribute, or to get a value from a set-only attribute.
java.lang.NoSuchFieldError.
Occurs when the user tries to set an attribute which is not one of the predefined attributes.
clear
Removes all attributes.
void clear();