if (signature == null) {
try {
// FIXME: do other hashes besides sha-1
signature = Signature.getInstance("SHA1withRSA");
} catch (NoSuchAlgorithmException nsae) {
throw new SignatureException("SHA1withRSA Signature not found");
}
}
signature.initVerify((PublicKey) key);
if (log.isLoggable(Level.FINE)) {
log.log(Level.FINE, "Signature provider:"+ signature.getProvider());