Class Hierarchy Previous Next Index
java.lang.Object | +----java.lang.Throwable | +----java.lang.Exception | +----COM.cloudscape.authentication.Interface.AuthenticationException
This is the Cloudscape Authentication exception class.
Failure to authenticate a user raises this exception. Appropriate
static methods should be called to cause an appropriate exception to be
constructed for Cloudscape.
A specialized authentication scheme class should raise this exception if the class failed to authenticate successfully the passed-in user's credentials.
Something of the form:
----------------------
throw AuthenticationException.loginFailed();
throw AuthenticationException.loginFailed(specificLoginFailureMsg);
Authentication exceptions are errors that are severe enough to terminate the session (connection).
public AuthenticationException(java.lang.String messageID)
messageID
- A message string for this exception.
public static AuthenticationException loginFailed()
public static AuthenticationException loginFailed(java.lang.String exceptionMsg)
public static AuthenticationException notAValidDatabaseUser(java.lang.String userName, java.lang.String databaseName)
Deprecated method for invalid user in a database.
This method now simply calls the no argument loginFailed method. In some situations
it is a security violation to reveal the name of a database on a remote machine
and the fact the user is not valid within that database.
This method will be removed in a future version of Cloudscape.
userName
- Ignored
databaseName
- Ignored.
Class Hierarchy Previous Next Index