001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 * 019 */ 020 021package org.apache.directory.server.dns.io.encoder; 022 023 024/** 025 * 3. The KEY Resource Record 026 * 027 * The KEY resource record (RR) is used to store a public key that is 028 * associated with a Domain Name System (DNS) name. This can be the 029 * public key of a zone, a user, or a host or other end entity. Security 030 * aware DNS implementations MUST be designed to handle at least two 031 * simultaneously valid keys of the same type associated with the same 032 * name. 033 * 034 * The type number for the KEY RR is 25. 035 * 036 * A KEY RR is, like any other RR, authenticated by a SIG RR. KEY RRs 037 * must be signed by a zone level key. 038 * 039 * 3.1 KEY RDATA format 040 * 041 * The RDATA for a KEY RR consists of flags, a protocol octet, the 042 * algorithm number octet, and the public key itself. The format is as 043 * follows: 044 * 045 * 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 046 * 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 047 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 048 * | flags | protocol | algorithm | 049 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 050 * | / 051 * / public key / 052 * / / 053 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-| 054 * 055 * The KEY RR is not intended for storage of certificates and a separate 056 * certificate RR has been developed for that purpose, defined in [RFC 057 * 2538]. 058 * 059 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 060 */ 061public class KeyRecordEncoder 062{ 063}