log.debug(">genKeys()");
if (log.isDebugEnabled()) { log.debug(">genKeys("+keysize+")"); }
    public static KeyPair genKeys(int keysize)        throws NoSuchAlgorithmException, NoSuchProviderException {        log.debug(">genKeys()");        KeyPairGenerator keygen = KeyPairGenerator.getInstance("RSA", "BC");        keygen.initialize(keysize);        KeyPair rsaKeys = keygen.generateKeyPair();        log.debug("Generated " + rsaKeys.getPublic().getAlgorithm() + " keys with length " +            ((RSAPrivateKey) rsaKeys.getPrivate()).getPrivateExponent().bitLength());        log.debug("<genKeys()");        return rsaKeys;    } // genKeys