According to the thread about Strings and security in java, the String
type can be dangerous when used for password attributes mainly because strings are immutable (could be found in the VM image) and could be logged.
As I'm using Thrift to generate Java classes, is there a thrift type or option that can generate a char []
(char array) so that I could avoid manipulating the generated Java classes directly ?
This is what
thrift --help
says for Java:So the answer is: Currently not.