Re: [VFS] Passing around password as byte[] instead

2013-07-08 Thread Paul Benedict
Because Strings hold onto their internal char[], unreferencing a String password means it hangs around in memory until the JVM garbage collects it. If you can ever prevent it from becoming a String, keep it as a char[] or byte[] -- then zero it all out before the array is unreferenced. Paul On M

Re: [VFS] Passing around password as byte[] instead

2013-07-08 Thread Gary Gregory
On Mon, Jul 8, 2013 at 7:05 PM, Roger L. Whitcomb wrote: > Well, that's what .Net did with SecureString, and OpenSSL did as well. > There is a longer discussion here: > http://stackoverflow.com/questions/8881291/why-is-char-preferred-over-st > ring-for-passwords > that talks more about the pros a

RE: [VFS] Passing around password as byte[] instead

2013-07-08 Thread Roger L. Whitcomb
Well, that's what .Net did with SecureString, and OpenSSL did as well. There is a longer discussion here: http://stackoverflow.com/questions/8881291/why-is-char-preferred-over-st ring-for-passwords that talks more about the pros and cons. The main reason I bring it up is that, even though it doesn

Re: [VFS] Passing around password as byte[] instead

2013-07-08 Thread Honton, Charles
Or maybe a Password class that's tailor designed to obsfucate and zero contents... On 7/8/13 3:23 PM, "sebb" wrote: >On 8 July 2013 23:05, Roger L. Whitcomb wrote: >> I had a thought that it would be more secure to pass password data >> around in VFS as byte arrays instead of String objects so

Re: [VFS] Passing around password as byte[] instead

2013-07-08 Thread Grant Overby
I would expect char[] or byte[] to be just as easily recognizable. People have used them to store passwords because those data types can be zero'd out; whereas, String is immutable and references are kept by the intern mechanism of String. If the char[] or byte[] is ever converted to a String (or o

Re: [VFS] Passing around password as byte[] instead

2013-07-08 Thread Gary Gregory
I've seen char[] used for passwords instead of String, but not byte[]. As soon as you use a byte[] for a String you need to track an encoding as well. Gary On Mon, Jul 8, 2013 at 6:05 PM, Roger L. Whitcomb wrote: > I had a thought that it would be more secure to pass password data > around in

Re: [VFS] Passing around password as byte[] instead

2013-07-08 Thread Grant Overby
Also worth noting: an extensively developed [Citation Needed], open source, java obfu tool (proguard) considers even proper String encryption to have such little value as to not include it. http://proguard.sourceforge.net/#FAQ.html On Mon, Jul 8, 2013 at 6:26 PM, Mark Thomas wrote: > "Roger L.

Re: [VFS] Passing around password as byte[] instead

2013-07-08 Thread Mark Thomas
"Roger L. Whitcomb" wrote: >I had a thought that it would be more secure to pass password data >around in VFS as byte arrays instead of String objects so they could >less easily be found by memory dumpers/scanners. This would apply (for >instance) to GenericFileName constructor and access method

Re: [VFS] Passing around password as byte[] instead

2013-07-08 Thread sebb
On 8 July 2013 23:05, Roger L. Whitcomb wrote: > I had a thought that it would be more secure to pass password data > around in VFS as byte arrays instead of String objects so they could > less easily be found by memory dumpers/scanners. This would apply (for > instance) to GenericFileName constr

[VFS] Passing around password as byte[] instead

2013-07-08 Thread Roger L. Whitcomb
I had a thought that it would be more secure to pass password data around in VFS as byte arrays instead of String objects so they could less easily be found by memory dumpers/scanners. This would apply (for instance) to GenericFileName constructor and access methods, etc. Obviously, at some point,

Re: [ALL] Improving Commons public relations

2013-07-08 Thread Thomas Neidhart
On 07/04/2013 10:20 PM, Benedikt Ritter wrote: > Hi, > > we had this discussion lately where we talked about attracting new > contributors for commons [1]. Over the past few days I've been thinking > about this topic again and I've come to the conclusion that there are > several things we could do

Re: [JCS] Remove tempbuilds/ directory from SVN?

2013-07-08 Thread Benedikt Ritter
2013/7/8 sebb > On 8 July 2013 09:44, Benedikt Ritter wrote: > > 2013/7/8 sebb > > > >> On 8 July 2013 09:12, Thomas Vandahl wrote: > >> > On 06.07.2013 16:10, Benedikt Ritter wrote: > >> >> > >> >> This may or may not be a problem when for creation of a git mirror by > >> >> infra. But the qu

[BEANUTILS] Problems publishing the site

2013-07-08 Thread Benedikt Ritter
Hi, I'm currently learning how to publish our sites. I've read through the docs [1] and this should be as easy as checking a component out, updating to the lastest parent and calling mvm clean site-deploy, right? When I run this on BeanUtils (we have this [2] request to update the site) it does a

Re: ObjectUtils

2013-07-08 Thread Matt Benson
It is unfortunate that most of ArrayUtils' methods do not support varargs because they were originally created with the array argument first. Semantically I think the concept of ArrayUtils#contains(Object, Object... array) is more sensible anyway. There is actually no technical reason why this me

Re: ObjectUtils

2013-07-08 Thread Rafael Santini
Hi Matt, I don't have an array of objects. I have some variables that need to be checked whether are null or not. if (obj1 != null && obj2 != null && obj3 != null && obj4 != null) { // Do something... } To use ArrayUtils.contations(), I need to code something like: if (ArrayUtils.contains(

[continuum] BUILD FAILURE: Apache Commons - Apache Commons Chain :: Parent - Project build using Java 1.6 (-Prelease does not work for multimodule poms)

2013-07-08 Thread Continuum@vmbuild
Online report : http://vmbuild.apache.org/continuum/buildResult.action?buildId=27176&projectId=69 Build statistics: State: Failed Previous State: Failed Started at: Mon 8 Jul 2013 17:20:01 + Finished at: Mon 8 Jul 2013 17:20:51 + Total time: 49s Build Trigger: Schedule Build

Re: ObjectUtils

2013-07-08 Thread Matt Benson
I don't know exactly why this thread is getting split, but I think several of us are taking the implicit position that we shouldn't necessarily include a separate utility method for things that can be accomplished with existing utility methods. It's arguably best that these (and any?) classes be k

Re: ObjectUtils

2013-07-08 Thread Rafael Santini
Hi, The proposed method is related to objects. As we have StringUtils.isBlank(), isNotBlank(), isEmpty() etc., the ObjectUtils.isNotNull(Object... objs) is intended to check if all objects are not null. So, instead of if (obj1 != null && obj2 != null && obj3 != null && obj4 != null) { // D

Re: Lang: ObjectUtils

2013-07-08 Thread Matt Benson
WRT #firstNonNull, I don't know why I couldn't find it before. I do now, and I agree it would seem to fit better in ArrayUtils. Matt On Mon, Jul 8, 2013 at 10:04 AM, Jörg Schaible wrote: > Hi Matt, > > Matt Benson wrote: > > > On Mon, Jul 8, 2013 at 8:22 AM, Jörg Schaible > > wrote: > > > >> H

Re: Lang: ObjectUtils

2013-07-08 Thread Jörg Schaible
Hi Matt, Matt Benson wrote: > On Mon, Jul 8, 2013 at 8:22 AM, Jörg Schaible > wrote: > >> Hi Hen, >> >> Henri Yandell wrote: >> >> > I don't see any value having the first two methods - replacing the '==' >> > sign is a bit too far in the 'provide simple methods' direction I think >> :) >> > >>

Re: Lang: ObjectUtils

2013-07-08 Thread Matt Benson
On Mon, Jul 8, 2013 at 8:22 AM, Jörg Schaible wrote: > Hi Hen, > > Henri Yandell wrote: > > > I don't see any value having the first two methods - replacing the '==' > > sign is a bit too far in the 'provide simple methods' direction I think > :) > > > > I think the third method is already in Lang

Re: Lang: ObjectUtils

2013-07-08 Thread Jörg Schaible
Hi Hen, Henri Yandell wrote: > I don't see any value having the first two methods - replacing the '==' > sign is a bit too far in the 'provide simple methods' direction I think :) > > I think the third method is already in Lang as: > > ArrayUtils.contains(array, null); Well, no, this is n

Re: [JCS] Remove tempbuilds/ directory from SVN?

2013-07-08 Thread sebb
On 8 July 2013 09:44, Benedikt Ritter wrote: > 2013/7/8 sebb > >> On 8 July 2013 09:12, Thomas Vandahl wrote: >> > On 06.07.2013 16:10, Benedikt Ritter wrote: >> >> >> >> This may or may not be a problem when for creation of a git mirror by >> >> infra. But the question is, do we really need thi

Re: [JCS] Remove tempbuilds/ directory from SVN?

2013-07-08 Thread Benedikt Ritter
2013/7/8 sebb > On 8 July 2013 09:12, Thomas Vandahl wrote: > > On 06.07.2013 16:10, Benedikt Ritter wrote: > >> > >> This may or may not be a problem when for creation of a git mirror by > >> infra. But the question is, do we really need this directory or can we > >> remove it? > > > > > > We c

Re: [JCS] Remove tempbuilds/ directory from SVN?

2013-07-08 Thread sebb
On 8 July 2013 09:12, Thomas Vandahl wrote: > On 06.07.2013 16:10, Benedikt Ritter wrote: >> >> This may or may not be a problem when for creation of a git mirror by >> infra. But the question is, do we really need this directory or can we >> remove it? > > > We can surely remove it. The reason I

Re: [JCS] Remove tempbuilds/ directory from SVN?

2013-07-08 Thread Benedikt Ritter
2013/7/8 Thomas Vandahl > On 06.07.2013 16:10, Benedikt Ritter wrote: > >> This may or may not be a problem when for creation of a git mirror by >> infra. But the question is, do we really need this directory or can we >> remove it? >> > > We can surely remove it. The reason I kept the tempbuilds

Re: [JCS] Remove tempbuilds/ directory from SVN?

2013-07-08 Thread Thomas Vandahl
On 06.07.2013 16:10, Benedikt Ritter wrote: This may or may not be a problem when for creation of a git mirror by infra. But the question is, do we really need this directory or can we remove it? We can surely remove it. The reason I kept the tempbuilds so far was that they correspond to "rele