if (callback instanceof PasswordCallback) {
((PasswordCallback) callback).setPassword(password.toCharArray());
} else if (callback instanceof NameCallback) {
((NameCallback) callback).setName(username);
} else {
throw new UnsupportedCallbackException(callback);
}
}
}
};
module.initialize(sub, handler, new HashMap(), options);