Code example for BigInteger

Methods: intValue

	public static CryptoKey read(InputStream i) throws IOException, CryptFormatException {
		return new DSAPublicKey(i);
	public int keyId() { 
		return y.intValue();
	public String toLongString() {
		return "y=" + HexUtil.biToHex(y);
	// this won't correctly read the output from writeAsField 
	//public static CryptoKey readFromField(DSAGroup group, String field) { 
	//    BigInteger y=Util.byteArrayToMPI(Util.hexToBytes(field)); 
	//    return new DSAPublicKey(group, y); 
	public byte[] asBytes() { 
Experience pair programming with AI  Get Codota for Java