Code example for DHPrivateKey

Methods: getX

0
        assertTrue(y.compareTo(p) == -1);
    } 
 
    private static String privateKeyToString(DHPrivateKey dhPrivateKey)
    { 
        return new String(Base64.encodeBase64(dhPrivateKey.getX().toByteArray()));
    } 
 
    public static Test suite()
    { 
        return new TestSuite(DiffieHellmanSessionTest.class);
    } 
}