if (!authenticated) throw new AuthenticationException(authenticationErrorMessage(mode, username));
// if we're here, the authentication succeeded. Now let's see if the user is authorized for this keyspace.
String afilename = System.getProperty(ACCESS_FILENAME_PROPERTY);
AccessLevel authorized = AccessLevel.NONE;
try
{
FileInputStream in = new FileInputStream(afilename);
Properties props = new Properties();
props.load(in);