-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Mot de passe dans fichier hibernate.cfg.xml
PostPosted: Fri Sep 30, 2005 5:44 am 
Newbie

Joined: Fri Sep 30, 2005 5:40 am
Posts: 3
Bonjour,

Comme vous le savez, le mot de passe apparait en clair dans le fichier hibernate.cfg.xml. Est-il possible de ne plus le faire apparaitre en clair?

Merci d'avance

Laurent


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 3:55 pm 
Senior
Senior

Joined: Tue Feb 08, 2005 5:26 pm
Posts: 157
Location: Montréal, Québec - Canada
Il n'est pas possible d'encrypter le mot de passe dans le fichier de configuration. Toutefois, il vous est possible de ne pas l'écrire dans le fichier de configuration et de le founir à Hibernate dans le code.

Je crois (je ne suis pas certain) que ceci peut-être fait de la manière suivante:


Code:
String motDePasse = //
configuration.setProperty("hibernate.connection.password", motDePasse  );


Bien à vous,
Vincent.

_________________
Vincent Giguère
J2EE Developer


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.