Exemple #1
0
 void rdataFromString(Tokenizer st, Name origin) throws IOException {
   String certTypeString = st.getString();
   certType = CertificateType.value(certTypeString);
   if (certType < 0) throw st.exception("Invalid certificate type: " + certTypeString);
   keyTag = st.getUInt16();
   String algString = st.getString();
   alg = DNSSEC.Algorithm.value(algString);
   if (alg < 0) throw st.exception("Invalid algorithm: " + algString);
   cert = st.getBase64();
 }