I am using NetBeans 7.0.1 and JDK 1.6 Update 24 and when importing the package com.sun.org.apache.xml.internal.security.utils.Base64 to encode a password hash:<
com.sun.org.apache.xml.internal.security.utils.Base64
With org.apache.commons.codec.binary.Base64 use the specific method (such as Base64.encodeBase64String() for example) to replace Base64.encode
org.apache.commons.codec.binary.Base64
Base64.encodeBase64String()
Base64.encode