case MD5_PASSWORD:
byte[] md5hash = PasswordHash.hashPasswordMD5(
connectionManager.getUsername(),
connectionManager.getPassword(),
authenticationMessage.getData());
SimpleFrontendMessage md5Message = new SimpleFrontendMessage(FrontendMessageType.PASSWORD, md5hash);
connection.write(md5Message);
break;
default:
throw new IllegalStateException("We currently do not support the authentication type of " + authenticationMessage.getAuthenticaitonType());
}