void
rdataFromString(Tokenizer st, Name origin) throws IOException {
	flags = st.getUInt16();
	proto = st.getUInt8();
	String algString = st.getString();
	alg = DNSSEC.Algorithm.value(algString);
	if (alg < 0)
		throw st.exception("Invalid algorithm: " + algString);
	key = st.getBase64();
}
Creates a DNSKEY Record from the given data
@param flags Flags describing the key's properties
@param proto The protocol that the key was created for
@param alg The key's algorithm
@param key The key as a PublicKey
@throws DNSSEC.DNSSECException The PublicKey could not be converted into DNS
format.
src/main/java/core/org/xbill/DNS/DNSKEYRecord.java