public boolean revokeTokenCertificates(String tokensn, String username, int reason) throws RemoteException, NamingException, CreateException, AuthorizationDeniedException, FinderException{ boolean success = true;  Collection certs = hardtokensession.findCertificatesInHardToken(administrator, tokensn); Iterator i = certs.iterator(); try{ while(i.hasNext()){ X509Certificate cert = (X509Certificate) i.next(); adminsession.revokeCert(administrator, cert.getSerialNumber(), cert.getIssuerDN().toString(), username, reason); } }catch( AuthorizationDeniedException e){ success =false; }  return success;
public boolean revokeTokenCertificates(String tokensn, String username, int reason) throws FinderException{ boolean success = true;  Collection certs = hardtokensession.findCertificatesInHardToken(administrator, tokensn); Iterator i = certs.iterator(); try{ while(i.hasNext()){ X509Certificate cert = (X509Certificate) i.next(); adminsession.revokeCert(administrator, cert.getSerialNumber(), cert.getIssuerDN().toString(), username, reason); } }catch( AuthorizationDeniedException e){ success =false; }  return success;
    public boolean revokeTokenCertificates(String tokensn, String username, int reason) throws RemoteException, NamingException, CreateException, AuthorizationDeniedException, FinderException{       boolean success = true;       Collection certs = hardtokensession.findCertificatesInHardToken(administrator, tokensn);       Iterator i = certs.iterator();       try{         while(i.hasNext()){           X509Certificate cert = (X509Certificate) i.next();             adminsession.revokeCert(administrator, cert.getSerialNumber(), cert.getIssuerDN().toString(), username, reason);         }       }catch( AuthorizationDeniedException e){         success =false;       }       return success;    }