[jboss-cvs] JBossAS SVN: r110264 - projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jan 4 10:42:08 EST 2011
Author: mmoyses
Date: 2011-01-04 10:42:08 -0500 (Tue, 04 Jan 2011)
New Revision: 110264
Modified:
projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/FilePassword.java
Log:
SECURITY-292: file should be read only when decrypting password
Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/FilePassword.java
===================================================================
--- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/FilePassword.java 2011-01-04 14:20:10 UTC (rev 110263)
+++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/FilePassword.java 2011-01-04 15:42:08 UTC (rev 110264)
@@ -107,7 +107,7 @@
public char[] toCharArray()
throws IOException
{
- RandomAccessFile raf = new RandomAccessFile(passwordFile, "rws");
+ RandomAccessFile raf = new RandomAccessFile(passwordFile, "r");
try
{
char[] password = decode(raf);
More information about the jboss-cvs-commits
mailing list