HashMap attributes = new HashMap(); attributes.put(DSSKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(DSSKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); }  adaptee.setup(attributes);
this.initialize(keysize, false, random);
  public void initialize(int keysize, SecureRandom random)  {    HashMap attributes = new HashMap();    attributes.put(DSSKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize));    if (random != null)      {        attributes.put(DSSKeyPairGenerator.SOURCE_OF_RANDOMNESS, random);      }    adaptee.setup(attributes);  }