untBinding.setSecretKey(sKey);
}
} else if (purpose == Purpose.VERIFY) {
salt[0] = MessageConstants.VALUE_FOR_SIGNATURE;
try {
verifySignature = pdk.generate160BitKey(password, iterations, salt);
} catch (UnsupportedEncodingException ex) {
logger.log(Level.SEVERE, LogStringsMessages.WSS_1381_ERROR_GENERATING_160_BITKEY(), ex);
throw new XWSSecurityException("error during generating 160 bit key ");
}
untBinding.setSecretKey(verifySignature);