15.32.1 Exception classes for JAAS login modules
The table below lists the exception classes for JAAS login modules.
|
No. |
Exception name |
Description |
|---|---|---|
|
1 |
A parent class for exception classes 2 through 4. The constructor of this class has an msg parameter (java.lang.String). |
|
|
2 |
Reports that the user account has expired. |
|
|
3 |
Reports that the credential has expired. |
|
|
4 |
Reports that authentication has failed. |
The login module in either the user authentication library or the single sign-on library assigns error message character strings to the exceptions and sends these strings. The error message character strings are listed in the table below.
Note that if the LoginContext class is instantiated when the JAAS configuration file contains an error,java.lang.SecurityException occurs. In this case, correct this configuration file by referring to the error message character string shown in the next table.
|
Exception name |
Error message character string |
Reason for occurrence |
|---|---|---|
|
data not found |
Authentication information is not found in the passed parameter. The HttpServletRequest passed to the WebPasswordHandler class did not contain a user ID or password. |
|
|
invalid data |
|
|
|
no data |
With user already authenticated within the session, necessary definitions do not include single sign-on authentication information that is associated with the realm to be called. |
|
|
invalid parameter |
The list of attribute names and attributes for creating a credential contains errors indicating that:
|
|
|
SQL exception name |
Access through JDBC has failed. If this exception occurs, take corrective action by referring to the error message character string. |
|
|
JNDI exception name |
LDAP access has failed.
|
|
|
not supported |
An unsupported CallbackHandler is being used.
|
|
|
no class for xxx |
The class called from WebSSOLoginModule cannot be used (xxx indicates the value specified by com.cosminexus.admin.auth.sso.loginmodule).
|
|
|
config error |
|
|
|
invalid session |
When an attempt was made to bind the session to an HttpSession object, the HttpSession object became invalid. |
|
|
crypto error |
Encryption or decryption has failed.
|
|
|
no sso data |
Information for single sign-on is not found.
|
|
|
no principal |
Because Principal was missing, the first authenticated user could not be identified. |
|
|
class cast error |
There is a mismatch between the type fetched from the repository and that specified in the configuration file for integrated user management. Match these two types. See com.cosminexus.admin.auth.ldap.password.encrypt in ua.conf (which is the configuration file for integrated user management). For details about this ua.conf file, see 14.2.2 ua.conf (integrated user management configuration file). |
|
|
not found driver |
JDBC is used.
|
|
|
Other |
An error has occurred in one of the login modules for the systems.
|