661N/A * reserved comment block 661N/A * DO NOT REMOVE OR ALTER! 661N/A * Copyright 2005 The Apache Software Foundation. 661N/A * Licensed under the Apache License, Version 2.0 (the "License"); 661N/A * you may not use this file except in compliance with the License. 661N/A * You may obtain a copy of the License at 661N/A * Unless required by applicable law or agreed to in writing, software 661N/A * distributed under the License is distributed on an "AS IS" BASIS, 661N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 661N/A * See the License for the specific language governing permissions and 661N/A * limitations under the License. 2362N/A * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DOM-based implementation of KeyInfo. 0N/A * @author Sean Mullan 0N/A * Creates a <code>DOMKeyInfo</code>. 0N/A * @param content a list of one or more {@link XMLStructure}s representing 0N/A * key information types. The list is defensively copied to protect 0N/A * against subsequent modification. 0N/A * @param id an ID attribute 0N/A * @throws NullPointerException if <code>content</code> is <code>null</code> 0N/A * @throws IllegalArgumentException if <code>content</code> is empty 0N/A * @throws ClassCastException if <code>content</code> contains any entries 0N/A * that are not of type {@link XMLStructure} 0N/A (
"content["+i+
"] is not a valid KeyInfo type");
0N/A * Creates a <code>DOMKeyInfo</code> from XML. 661N/A * @param kiElem KeyInfo element 0N/A // get Id attribute, if specified 0N/A // get all children nodes 0N/A (
"KeyInfo must contain at least one type");
0N/A // ignore all non-Element nodes 0N/A }
else {
//may be MgmtData, SPKIData or element from other namespace 0N/A // create and append KeyInfoType elements 0N/A // append id attribute