for (int i = 0; i < callbacks.length; i++) {
// When the server side need to authenticate the user
WSPasswordCallback pwcb = (WSPasswordCallback) callbacks[i];
if (pwcb.getUsage() == WSPasswordCallback.USERNAME_TOKEN_UNKNOWN) {
Pam pam = new Pam();
PamReturnValue ret = pam.authenticate(pwcb.getIdentifer(), pwcb
.getPassword());
if (ret.equals(PamReturnValue.PAM_SUCCESS)) {
return;
} else {
throw new IOException("check failed");