1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 * 19 */ 20 21 package org.apache.directory.server.dns.io.encoder; 22 23 24 /** 25 * 3. The KEY Resource Record 26 * 27 * The KEY resource record (RR) is used to store a public key that is 28 * associated with a Domain Name System (DNS) name. This can be the 29 * public key of a zone, a user, or a host or other end entity. Security 30 * aware DNS implementations MUST be designed to handle at least two 31 * simultaneously valid keys of the same type associated with the same 32 * name. 33 * 34 * The type number for the KEY RR is 25. 35 * 36 * A KEY RR is, like any other RR, authenticated by a SIG RR. KEY RRs 37 * must be signed by a zone level key. 38 * 39 * 3.1 KEY RDATA format 40 * 41 * The RDATA for a KEY RR consists of flags, a protocol octet, the 42 * algorithm number octet, and the public key itself. The format is as 43 * follows: 44 * 45 * 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 46 * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 47 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 48 * | flags | protocol | algorithm | 49 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 50 * | / 51 * / public key / 52 * / / 53 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-| 54 * 55 * The KEY RR is not intended for storage of certificates and a separate 56 * certificate RR has been developed for that purpose, defined in [RFC 57 * 2538]. 58 * 59 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 60 * @version $Rev: 501160 $, $Date: 2007-01-29 20:41:33 +0100 (Mo, 29 Jan 2007) $ 61 */ 62 public class KeyRecordEncoder 63 { 64 }