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 X509Data. 0N/A * @author Sean Mullan 0N/A//@@@ check for illegal combinations of data violating MUSTs in W3c spec 0N/A * Creates a DOMX509Data. 0N/A * @param content a list of one or more X.509 data types. Valid types are 0N/A * {@link String} (subject names), <code>byte[]</code> (subject key ids), 0N/A * {@link java.security.cert.X509Certificate}, {@link X509CRL}, 0N/A * objects or elements from an external namespace). The list is 0N/A * defensively copied to protect against subsequent modification. 0N/A * @return a <code>X509Data</code> 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 one of the valid types mentioned above 0N/A (
"content["+i+
"] is not a valid X509Data type");
0N/A * Creates a <code>DOMX509Data</code> from an element. 0N/A * @param xdElem an X509Data element 0N/A * @throws MarshalException if there is an error while unmarshalling 0N/A // get all children nodes 0N/A // ignore all non-Element nodes 0N/A // append children and preserve order 0N/A if (x
instanceof byte[]) {
0N/A if (!(
ox instanceof byte[]) ||