Autenticar o usuário no JAAS

OLá
Pessoal
Tenho que autenticar um usuário no jaas e cheguei nesse codigo :

	try {
	 	   AuthenticatorInterface auth = context.getAuthenticator();
	 	   HierarchicalMap parameters = new HierarchicalMap(); 
	 	   parameters.put("USER_ID", context.getInputData("USER"));
	 	   parameters.put("PASSWORD", context.getInputData("PASSWORD")); 
	 	   auth.authenticate(parameters);
	  

	} catch (Throwable t) {
    	context.getLogger().write(Logger.INFORMATION, "Erro ao tentar autenticar o Usuario:" + context.getInputData("USER_ID") + "  -  "  + t.getMessage() );
	}
        return true;

Ele de fato autentica o usuário ? ou falta algo ?

Grato