(Tokenizer st, Name origin)
| 329 | } |
| 330 | |
| 331 | void |
| 332 | rdataFromString(Tokenizer st, Name origin) throws IOException { |
| 333 | String flagString = st.getIdentifier(); |
| 334 | flags = Flags.value(flagString); |
| 335 | if (flags < 0) |
| 336 | throw st.exception("Invalid flags: " + flagString); |
| 337 | String protoString = st.getIdentifier(); |
| 338 | proto = Protocol.value(protoString); |
| 339 | if (proto < 0) |
| 340 | throw st.exception("Invalid protocol: " + protoString); |
| 341 | String algString = st.getIdentifier(); |
| 342 | alg = DNSSEC.Algorithm.value(algString); |
| 343 | if (alg < 0) |
| 344 | throw st.exception("Invalid algorithm: " + algString); |
| 345 | /* If this is a null KEY, there's no key data */ |
| 346 | if ((flags & Flags.USE_MASK) == Flags.NOKEY) |
| 347 | key = null; |
| 348 | else |
| 349 | key = st.getBase64(); |
| 350 | } |
| 351 | |
| 352 | } |
nothing calls this directly
no test coverage detected