final HashMap attributes = new HashMap();
attributes.put(SRPKeyPairGenerator.SHARED_MODULUS, N);
attributes.put(SRPKeyPairGenerator.GENERATOR, g);
kpg.setup(attributes);
final KeyPair clientKP = kpg.generate();
final BigInteger A = ((SRPPublicKey) clientKP.getPublic()).getY();
final BigInteger a = ((SRPPrivateKey) clientKP.getPrivate()).getX();
attributes.put(SRPKeyPairGenerator.USER_VERIFIER, v);
kpg.setup(attributes);