public static void validateGx4(BigInteger gx4) throws CryptoException {
  if (gx4.equals(ONE)) {
    throw new CryptoException("g^x validation failed.  g^x should not be 1.");
  }
}

public static void validateGx4 ( BigInteger gx4 ) throws CryptoException { if ( gx4 . equals ( ONE ) ) { throw new CryptoException ( "g^x validation failed.  g^x should not be 1." ) ; } }
validates that g ^ x4 is not 1 .
