/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* This class defines the PKCS10 attributes for the request.
* The ASN.1 syntax for this is:
* <pre>
* Attributes ::= SET OF Attribute
* </pre>
*
* @author Amit Kapoor
* @author Hemma Prafullchandra
* @see PKCS10
* @see PKCS10Attribute
*/
/**
* Default constructor for the PKCS10 attribute.
*/
public PKCS10Attributes() { }
/**
* Create the object from the array of PKCS10Attribute objects.
*
* @param attrs the array of PKCS10Attribute objects.
*/
}
}
/**
* Create the object, decoding the values from the passed DER stream.
* The DER stream contains the SET OF Attribute.
*
* @param in the DerInputStream to read the attributes from.
* @exception IOException on decoding errors.
*/
throw new IOException("Illegal encoding of attributes");
}
}
/**
* Encode the attributes in DER form to the stream.
*
* @param out the OutputStream to marshal the contents to.
* @exception IOException on encoding errors.
*/
}
/**
* Encode the attributes in DER form to the stream.
* Implements the <code>DerEncoder</code> interface.
*
* @param out the OutputStream to marshal the contents to.
* @exception IOException on encoding errors.
*/
// first copy the elements into an array
true, (byte)0),
attribs);
}
/**
* Set the attribute value.
*/
if (obj instanceof PKCS10Attribute) {
}
}
/**
* Get the attribute value.
*/
}
/**
* Delete the attribute value.
*/
}
/**
* Return an enumeration of names of attributes existing within this
* attribute.
*/
}
/**
* Return a Collection of attributes existing within this
* PKCS10Attributes object.
*/
}
/**
* Compares this PKCS10Attributes for equality with the specified
* object. If the <code>other</code> object is an
* <code>instanceof</code> <code>PKCS10Attributes</code>, then
* all the entries are compared with the entries from this.
*
* @param other the object to test for equality with this PKCS10Attributes.
* @return true if all the entries match that of the Other,
* false otherwise.
*/
if (this == other)
return true;
if (!(other instanceof PKCS10Attributes))
return false;
PKCS10Attribute[] attrs =
return false;
for (int i=0; i < len; i++) {
return false;
return false;
return false;
}
return true;
}
/**
* Returns a hashcode value for this PKCS10Attributes.
*
* @return the hashcode value.
*/
public int hashCode() {
}
/**
* Returns a string representation of this <tt>PKCS10Attributes</tt> object
* in the form of a set of entries, enclosed in braces and separated
* by the ASCII characters "<tt>, </tt>" (comma and space).
* <p>Overrides the <tt>toString</tt> method of <tt>Object</tt>.
*
* @return a string representation of this PKCS10Attributes.
*/
return s;
}
}