2362N/A * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * A set of attributes of class PKCS9Attribute. 0N/A * @author Douglas Hoover 0N/A * Attributes in this set indexed by OID. 0N/A * The keys of this hashtable are the OIDs of permitted attributes. 0N/A * The DER encoding of this attribute set. The tag byte must be 0N/A * DerValue.tag_SetOf. 0N/A * Contols how attributes, which are not recognized by the PKCS9Attribute 0N/A * class, are handled during parsing. 0N/A * Construct a set of PKCS9 Attributes from its 0N/A * DER encoding on a DerInputStream, accepting only attributes 0N/A * with OIDs on the given 0N/A * list. If the array is null, accept all attributes supported by 0N/A * class PKCS9Attribute. 0N/A * @param permittedAttributes 0N/A * Array of attribute OIDs that will be accepted. 0N/A * the contents of the DER encoding of the attribute set. 0N/A * @exception IOException 0N/A * on i/o error, encoding syntax error, unacceptable or 0N/A * unsupported attribute, or duplicate attribute. 0N/A * @see PKCS9Attribute 0N/A // derEncoding initialized in <code>decode()</code> 0N/A * Construct a set of PKCS9 Attributes from the contents of its 0N/A * DER encoding on a DerInputStream. Accept all attributes 0N/A * supported by class PKCS9Attribute and reject any unsupported 0N/A * @param in the contents of the DER encoding of the attribute set. 0N/A * @exception IOException 0N/A * on i/o error, encoding syntax error, or unsupported or 0N/A * duplicate attribute. 0N/A * @see PKCS9Attribute 0N/A * Construct a set of PKCS9 Attributes from the contents of its 0N/A * DER encoding on a DerInputStream. Accept all attributes 0N/A * supported by class PKCS9Attribute and ignore any unsupported 0N/A * attributes, if directed. 0N/A * @param in the contents of the DER encoding of the attribute set. 0N/A * @param ignoreUnsupportedAttributes If true then any attributes 0N/A * not supported by the PKCS9Attribute class are ignored. Otherwise 0N/A * unsupported attributes cause an exception to be thrown. 0N/A * @exception IOException 0N/A * on i/o error, encoding syntax error, or unsupported or 0N/A * duplicate attribute. 0N/A * @see PKCS9Attribute 0N/A // derEncoding initialized in <code>decode()</code> 0N/A * Construct a set of PKCS9 Attributes from the given array of 0N/A * DER encoding on a DerInputStream. All attributes in 0N/A * <code>attribs</code> must be 0N/A * supported by class PKCS9Attribute. 0N/A * @exception IOException 0N/A * on i/o error, encoding syntax error, or unsupported or 0N/A * duplicate attribute. 0N/A * @see PKCS9Attribute 0N/A " duplicated while constructing " +
0N/A "PKCS9Attributes.");
0N/A * Decode this set of PKCS9 attributes from the contents of its 0N/A * DER encoding. Ignores unsupported attributes when directed. 0N/A * the contents of the DER encoding of the attribute set. 0N/A * @exception IOException 0N/A * on i/o error, encoding syntax error, unacceptable or 0N/A * unsupported attribute, or duplicate attribute. 0N/A // save the DER encoding with its proper tag byte. 0N/A " not permitted in this attribute set");
0N/A * Put the DER encoding of this PKCS9 attribute set on an 0N/A * DerOutputStream, tagged with the given implicit tag. 0N/A * @param tag the implicit tag to use in the DER encoding. 0N/A * @param out the output stream on which to put the DER encoding. 0N/A * @exception IOException on output error. 0N/A * Return the DER encoding of this attribute set, tagged with 0N/A * DerValue.tag_SetOf. 0N/A * Get an attribute from this set. 0N/A * Get an attribute from this set. 0N/A * Get an array of all attributes in this set, in order of OID. 0N/A * Get an attribute value by OID. 0N/A * Get an attribute value by type name. 0N/A " not recognized or not supported.");
0N/A * Returns the PKCS9 block in a printable string form. 0N/A // we have a value; print it 0N/A * Cast an object array whose components are 0N/A * <code>DerEncoder</code>s to <code>DerEncoder[]</code>.