StringTokenizerメソッドのifstatementに問題があります。これは、char配列であることが原因だと思います。変換しようとしましたが、うまくいかないようです。ありがとうございます。
char[] password = loginPass.getPassword();
StringTokenizer st = new StringTokenizer(theText, ",");
if (thisToken.equals(password))
{
System.out.println("Hi Harry u got the pasword right!!!");
}